Skip to content

Instantly share code, notes, and snippets.

@ryanerwin
ryanerwin / lib.SMTPd.pm6
Created September 29, 2017 08:44
P6-React-Async-Listen
unit class SMTPd;
use IO::Socket::Async::SSL;
has $.port;
has $.debug;
has $.raw;
has $.socket;
has $.tls;
has $.ssl;
has $.plain;
@ryanerwin
ryanerwin / lib.SMTPd.pm6
Created September 29, 2017 08:43
P6-React-Async-Listen
unit class SMTPd;
use IO::Socket::Async::SSL;
has $.port;
has $.debug;
has $.raw;
has $.socket;
has $.tls;
has $.ssl;
has $.plain;
@ryanerwin
ryanerwin / perl6-debug.nqp.txt
Created May 16, 2017 10:31
perl6-debug.nqp -- added sym:<use> callback
use Perl6::Grammar;
use Perl6::Actions;
use Perl6::Compiler;
class Perl6::DebugHooks {
has %!hooks;
has $!suspended;
method set_hook($name, $callback) {
$*W.add_object($callback);