iasyncio – Overlapped IO

Introduction

The AsyncIO objects wrap Overlapped IO – Microsoft’s answer to asynchronous IO – to allow fairly easy access.

Classes

class AsyncIO(handle, buffer_size=4096)

Bases: winsys.core._WinSysObject

is_complete()
Returns:True if the IO has completed
pyobject()

Return the pyobject of the underlying event so that this object can be waited on by the ipc.all() or ipc.any() functions

wait_for_completion()

Wait for the IO to complete in such a way that the wait can be interrupted by a KeyboardInterrupt.

class AsyncWriter(handle, data)

Bases: asyncio.AsyncIO

class AsyncReader(handle)

Bases: asyncio.AsyncIO

data()

Wait until the IO has completed and return the data from the read. This is expected to be called after is_complete is true.

Exceptions

exception x_asyncio(errno=None, errctx=None, errmsg=None)

References

See also

Synchronisation
Documentation on microsoft.com for synchronisation objects
Using the asyncio module
Cookbook examples of using the asyncio module

Table Of Contents

Previous topic

The Pipe classes

Next topic

registry – Registry

This Page