yera.events.blocks.exit

Exit block implementation.

Symbols

def quit_event — Push a success exit event for a user-initiated quit.
def unsupported_block_event — Push an exit event for an unsupported await_user block (e.g. form).

quit_event

quit_event() → None

Push a success exit event for a user-initiated quit.

unsupported_block_event

unsupported_block_event(
    block_type: str,
) → None

Push an exit event for an unsupported await_user block (e.g. form).

Block factories use this when is_restricted_stream() is True, then raise UnsupportedAwaitUserBlockError. Uses exit_event() so the event has the correct app_instance from the current context.