Help language development. Donate to The Perl Foundation

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

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

use DB::Pg;

my $pg = DB::Pg.new;

react
{
    whenever $pg.listen('foo') -> $msg
    {
        say $msg;
    }

    whenever $pg.listen('bar') -> $msg
    {
        say $msg;
    }
}