Skip to content

Instantly share code, notes, and snippets.

@coke

coke/err.raku Secret

Last active May 5, 2022
Embed
What would you like to do?
use Log::Timeline;
my constant $TEST_PORT = 19893;
PROCESS::<$LOG-TIMELINE-OUTPUT> = Log::Timeline::Output::Socket.new(port => $TEST_PORT);
my $conn;
$conn = await IO::Socket::Async.connect('localhost', $TEST_PORT);
dd $conn.WHERE;
$conn.close;
# THIS BLOCK IS NEEDED
{ $conn = await IO::Socket::Async.connect('localhost', $TEST_PORT) },
dd $conn.WHERE; # number changes
await $conn.print("not even JSON\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment