### ----------------------------------------------------
### -- Test::Stream
### -- Licenses: Artistic-2.0
### -- Authors: 
### -- File: lib/Test/Stream/EventSource.rakumod
### ----------------------------------------------------
unit class Test::Stream::EventSource;

has CallFrame $.frame handles < code file line >;
has Int:D $.pid = $*PID;
has Int:D $.tid = $*THREAD.id;

method package {
    return $.frame.code.can('package')
        ?? $.frame.code.package
        !! '<none>';
}

# vim: expandtab shiftwidth=4


