Support for passing a context to async IO handlers