JanetDocsPlaygroundI'm feeling luckyGitHub sign in

ev/give-supervisor



    cfunction

    (ev/give-supervsior tag & payload)

    Send a message to the current supervior channel if there is one. 
    The message will be a tuple of all of the arguments combined into a 
    single message, where the first element is tag. By convention, tag 
    should be a keyword indicating the type of message. Returns nil.


1 exampleSign in to add an example
Loading...
(def chan (ev/chan))
(def f (ev/go (coro (ev/give-supervisor :msg "Hello")) nil chan))
(pp (ev/take chan)) # => (:msg "Hello")
pepePlayground