-
-
Save MasterDuke17/9b8fb21de6179a15795378be31d3a311 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await IO::Socket::Async.connect('foobar', 3333).then( -> $p { | |
if $p.status { | |
given $p.result { | |
.print('Hello, Perl 6'); | |
react { | |
whenever .Supply() -> $v { | |
$v.say; | |
done; | |
} | |
} | |
.close; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment