completion

Crates.iocompletion
lib.rscompletion
version0.2.1
sourcesrc
created_at2021-01-17 12:12:39.095067
updated_at2021-04-08 05:53:29.460989
descriptionUtilities for writing completion-based asynchronous code
homepage
repositoryhttps://github.com/KaiJewson/completion
max_upload_size
id343098
size412,953
Sabrina Jewson (SabrinaJewson)

documentation

README

completion

Utilities for writing completion-based asynchronous code.

A completion future is a future that must be run to completion, unlike regular futures which can be dropped and stopped at any time without the future's knowledge. This allows for more flexibility for the implementer of the future and allows APIs like io_uring and IOCP to be wrapped in a zero-cost way.

This is based off this RFC by Matthias247.

Features

  • std: Enables features that require the standard library, on by default.
  • alloc: Enables features that require allocation, on by default.
  • macro: Enables the [completion], [completion_async], [completion_async_move] and [completion_stream] macros, on by default.

License: MIT OR Apache-2.0

Commit count: 41

cargo fmt