How to use the aiofile.thread_aio.IO_NOP function in aiofile

To help you get started, we’ve selected a few aiofile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mosquito / aiofile / tests / test_py35 / test_thread_aio.py View on Github external
def thread_aio_file(name, mode):
    AIOFile.OPERATION_CLASS = ThreadedAIOOperation
    AIOFile.IO_READ = IO_READ
    AIOFile.IO_NOP = IO_NOP
    AIOFile.IO_WRITE = IO_WRITE

    return AIOFile(name, mode)
github mosquito / aiofile / tests / test_thread_aio.py View on Github external
def thread_aio_file(name, mode):
    AIOFile.OPERATION_CLASS = ThreadedAIOOperation
    AIOFile.IO_READ = IO_READ
    AIOFile.IO_NOP = IO_NOP
    AIOFile.IO_WRITE = IO_WRITE

    return AIOFile(name, mode)
github mosquito / aiofile / tests / __init__.py View on Github external
def thread_aio_file(name, mode, **kwargs):
    AIOFile.OPERATION_CLASS = thread_aio.ThreadedAIOOperation
    AIOFile.IO_READ = thread_aio.IO_READ
    AIOFile.IO_NOP = thread_aio.IO_NOP
    AIOFile.IO_WRITE = thread_aio.IO_WRITE

    return AIOFile(name, mode, **kwargs)