Method: DTAS::WritableIter#writable_iter

Defined in:
lib/dtas/writable_iter.rb

#writable_iterObject

this is used to exchange our own writable status for the readable status of the DTAS::Buffer which triggered us.



31
32
33
34
35
36
37
38
# File 'lib/dtas/writable_iter.rb', line 31

def writable_iter
  if owr = @on_writable
    @on_writable = nil
    @ready_write = true
    owr.call # this triggers readability watching of DTAS::Buffer
  end
  :ignore
end