class Cocoon::Wrapper(T)

Defined in:

cocoon.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(result : Channel(Exception | T | Nil) = Channel(T | Exception | Nil).new, output : Channel(Exception | T | Nil) = Channel(T | Exception | Nil).new) #

[View source]

Instance Method Detail

def wrap(&block : -> T) forall T #

[View source]