Class Method Details

.copy_stream(src, dst, copy_length = nil, src_offset = nil) ⇒ Object

Raises:

(NotImplementedError)

38
39
40
41
42
43
44
45
46
47

# File 'lib/celluloid/io.rb', line 38defself.copy_stream(src,dst,copy_length=nil,src_offset=nil)raiseNotImplementedError,"length/offset not supported"ifcopy_length||src_offsetsrc,dst=try_convert(src),try_convert(dst)# FIXME: this always goes through the reactor, and can block on file I/O
whiledata=src.read(BLOCK_SIZE)dst<<dataendend