Skip to content

Instantly share code, notes, and snippets.

@felipecruz
Created October 21, 2010 20:18
Show Gist options
  • Save felipecruz/639256 to your computer and use it in GitHub Desktop.
Save felipecruz/639256 to your computer and use it in GitHub Desktop.
experimental aio.h implementation for python
import pyaio
import time
def aio_callback(buf):
print 'python callback %s' % buf
#file name, offset, lenght, callback function
pyaio.aio_read('/tmp/b.txt', 10, 20, aio_callback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment