Asynchronous IO RFC

NotFound julian.notfound at gmail.com
Mon May 25 14:40:54 UTC 2009


> 1) I don't want to have an asynchronous version of the "open" opcode.
>
> 2) We're going to need to open streams in either synchronous or
> asynchronous mode. I'm proposing we use an "n" mode flag for
> non-blocking and a "b" flag for blocking. This way we can use existing
> methods "read" and "write", etc to do what we want.

Note that non blocking and asynchronous may (and I think should) be
orthogonal. A non blocking synchronous read just returns an empty
result if there is no available data.

-- 
Salu2


More information about the parrot-dev mailing list