-
-
Save zoffixznet/59f4b46d361511efff1a74b373fff6fa 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
start react whenever IO::Socket::Async.listen('127.0.0.1', 15555) { | |
start @ = supply { | |
say 'got here ' ~ $*AWAITER; | |
whenever $_ { | |
say 'but not here ' ~ $*AWAITER; | |
exit; | |
} | |
}.list | |
} | |
sleep .1; | |
.print: "x\n" with IO::Socket::INET.new: :host<127.0.0.1>, :15555port; | |
sleep 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment