Best practices and design patterns for supporting concurrent IO in libraries

See also Interaction of effect-based fibers with caml_release_runtime_system?