BenBrock / async_io

C++ Asynchronous File IO with Futures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async_io

async_io provides a C++ asynchronous file IO API with futures.

  // Read bytes 10 -> 100 from "file.dat"
  auto future = async_io::read("file.dat", {10, 100});
  
  while (...) {
    // Do some work
  }
  
  // Block on previously issued IO
  auto data = future.get();

It's implemented using the POSIX AIO interface.

About

C++ Asynchronous File IO with Futures

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 100.0%