Help language development. Donate to The Perl Foundation

DB::Pg cpan:CTILMES last updated on 2021-07-02

eg/parallel.raku
#!/usr/bin/env raku

use DB::Pg;

my $pg = DB::Pg.new;

say await do for ^10 {
    start $pg.query('select $1::int, pg_sleep($1::float/10)', $_).value
}