Skip to content

Instantly share code, notes, and snippets.

@tempire
Created June 10, 2020 15:25
my $hashref;
method_that_returns_promise
->then(sub {
$hashref = shift;
return 1;
})
->then(sub {
my $thing = $hashref;
do_something_with($thing);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment