Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created October 30, 2018 19:17
Show Gist options
  • Save jjn1056/7da20d97228cfe6fd87d33f6cb2a461c to your computer and use it in GitHub Desktop.
Save jjn1056/7da20d97228cfe6fd87d33f6cb2a461c to your computer and use it in GitHub Desktop.
my $schema = MyApp::Schema->connect(...);
my $user_rs = $schema->resultset('User');
my @results = $user_rs
->ready_p(sub {
my ($rs) = @_;
$rs->search({id=>1})
})->then(...)
->await;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment