abstract class Concurrent::Stream::Destination(E)

Overview

Terminates the stream Always call #wait or #detach on this object. Not calling #wait or #detach is undefined.

Included Modules

Direct Known Subclasses

Defined in:

concurrent/stream.cr

Constructors

Instance Method Summary

Instance methods inherited from class Concurrent::Stream::Base

close : Nil close

Constructor methods inherited from class Concurrent::Stream::Base

new(*, fibers : Int32, parent : Concurrent::Stream::Base | Nil) new

Constructor Detail

def self.new(fibers, parent) #

[View source]

Instance Method Detail

def close : Nil #

[View source]
def detach(&block) #

Likely to be replaced with a Future or async shard later

EXPERIMENTAL


[View source]
def detach #

Likely to be replaced with a Future or async shard later

EXPERIMENTAL


[View source]
def wait(*args, **options) #

[View source]
def wait(*args, **options, &) #

[View source]