Skip to content

Instantly share code, notes, and snippets.

@timo
Created January 20, 2014 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/4134cd44443420e1d512 to your computer and use it in GitHub Desktop.
Save timo/4134cd44443420e1d512 to your computer and use it in GitHub Desktop.
well ... almost!
timo@schmetterling ~/p/rakudo (nom)>
./perl6-j -e 'my $p = IO::Async::File.new.open("foobar", :w).spurt("hey whats up?"); say $p.perl; say $p.status; sleep(1); say $p.status; say await $p;'
Promise.new(scheduler => ThreadPoolScheduler.new(uncaught_handler => Callable), status => PromiseStatus::Kept)
Kept
Kept
1
timo@schmetterling ~/p/rakudo (nom)> cat foobar
timo@schmetterling ~/p/rakudo (nom)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment