emit
Sends event from this node's running Java FunctionNode body or a thread it uses, after earlier calls' events and before the output, or after it if a useAsOutput child already sent the output. A non-partial call returns once the run has stored the event and passed it on; a partial one returns at once, and its event is neither stored nor given state. The event carries the state written before the call, or with an event another thread sent just before it, so use state only on the thread that calls emit.
Throws
outside a running Java body or after it ended
once the node is cancelled, or if the waiting thread is interrupted; that thread stays interrupted, and the event may still be stored
Sends content as a message from this node's Java body, as emit with an Event does.