module ConcurrencyUtil

Extended Modules

Direct including types

Defined in:

lib/concurrency_util.cr

Constant 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

Instance Method Detail

def every(period : Time::Span, interrupt : Channel(Nil), &block : -> Enumerable(T)) forall T #

What does this : -> T do?


[View source]
def timer(period : Time::Span) #

returns a channel and will send nil to that channel after the 'period'


[View source]