#promise #abyss #resolve #from-millis #100

abyss-promise

[abyss] A simple promise implementation with adaptive threadpool support

4 releases

0.2.1 May 15, 2025
0.2.0 Feb 5, 2022
0.1.1 Dec 16, 2021
0.1.0 Dec 16, 2021

#735 in Asynchronous

Download history 5/week @ 2025-02-19 14/week @ 2025-02-26 28/week @ 2025-04-09 22/week @ 2025-04-16 7/week @ 2025-05-07 139/week @ 2025-05-14

150 downloads per month

MIT/Apache

14KB
302 lines

This is a simple promise implementation with an adaptive threadpool.

Usage:

use abyss_promise::Promise;

let promise = Promise::new(|promise| {
    std::thread::sleep(std::time::Duration::from_millis(100));
    promise.resolve(0);
});

assert_eq!(promise.resolve(), Some(0));

Dependencies

~0.7–5.5MB
~18K SLoC