Version 0.2.0-0 of ki is deprecated.
The latest version of ki is 1.0.1.2-0.

ki

Version 0.2.0 revision 0 uploaded by mitchellwrosen.

Package meta

Synopsis
A lightweight, structured-concurrency library
Description

A lightweight, structured-concurrency library.

This package comes in two variants:

  • Ki exposes the most stripped-down variant; start here.

  • Ki.Implicit extends Ki with an implicit context that's used to propagate soft cancellation signals.

Using this variant comes at a cost:

  • You must manually add constraints to propagate the implicit context to where it's needed.

  • To remain warning-free, you must delete the implicit context constraints where they are no longer needed.

If you don't need soft-cancellation, there is no benefit to using this variant, and you should stick with Ki.

Because you'll only ever need one variant at a time, I recommend using a mixin stanza to rename one module to Ki while hiding the others. This also simplifies the process of upgrading from Ki.Implicit to Ki if necessary.

mixins: ki (Ki.Implicit as Ki)
Author
Mitchell Rosen
Bug reports
https://github.com/mitchellwrosen/ki/issues
Category
Concurrency
Copyright
Copyright (C) 2020 Mitchell Rosen
Homepage
https://github.com/mitchellwrosen/ki
Maintainer
Mitchell Rosen <mitchellwrosen@gmail.com>
Package URL
n/a
Stability
experimental

Components