Class: Teek::RactorStream::StreamYielder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/teek/ractor_support.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(task) ⇒ StreamYielder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of StreamYielder.



237
238
239
# File 'lib/teek/ractor_support.rb', line 237

def initialize(task)
  @task = task
end

Instance Method Details

#yield(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



241
242
243
# File 'lib/teek/ractor_support.rb', line 241

def yield(value)
  @task.yield(value)
end