module ConcurrencyUtil
Extended Modules
Direct including types
Defined in:
lib/concurrency_util.crConstant Summary
-
Log =
::Log.for(self)
-
I can use macro if statements to change this initialization if the @type == Program, to not wrap my main file in a module, if that's something I want
Instance Method Summary
-
#every(period : Time::Span, interrupt : Channel(Nil), &block : -> Enumerable(T)) forall T
What does this : -> T do?
-
#timer(period : Time::Span)
returns a channel and will send nil to that channel after the 'period'
Instance Method Detail
What does this : -> T do?
def timer(period : Time::Span)
#
returns a channel and will send nil to that channel after the 'period'