cfuture: A Future type that is interruptible anytime and exportable to C/C++.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
A module similar to the "future" package of Chris Kuklewicz, but having a Future that is interruptible anytime, and easy to represent and handle in C/C++.
It uses two threads, the first of which kills the calculation if triggered by filling an MVar, and the second of which calculating the result and writing it into another MVar. However, the library can be used without manipulating the MVars directly.
Properties
| Versions | 1.0, 2.0, 2.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.17.2 && <5), base-prelude (>=1.4 && <1.7) [details] |
| License | BSD-3-Clause |
| Author | Viktor Csimma |
| Maintainer | csimmaviktor03@gmail.com |
| Category | Concurrency |
| Source repo | head: git clone https://github.com/viktorcsimma/cfuture.git |
| Uploaded | by csimma at 2026-03-19T11:51:48Z |
Modules
[Index] [Quick Jump]
- Control
- Concurrent
Downloads
- cfuture-2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees