W3cubDocs

/Crystal

module Channel::SelectAction(S)

Defined in:

channel.cr

Instance Method Summary

Instance Method Detail

def create_context_and_wait(shared_state)Source

def default_resultSource

Implementor that returns Channel::UseDefault in #execute must redefine #default_result

abstract def execute : DeliveryStateSource

abstract def lockSource

abstract def lock_object_idSource

abstract def result : SSource

abstract def unlockSource

def unwait(context : SelectContext(S))Source

def unwait(context : SelectContext)Source

idem wait_result/wait_result_impl

abstract def unwait_impl(context : SelectContext(S))Source

abstract def wait(context : SelectContext(S))Source

def wait_result(context : SelectContext(S))Source

def wait_result(context : SelectContext)Source

wait_result overload allow implementors to define wait_result_impl with the right type and Channel.select_impl to allow dispatching over unions that will not happen

abstract def wait_result_impl(context : SelectContext(S))Source

© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Channel/SelectAction.html