21 releases

Uses old Rust 2015

0.2.0 Apr 24, 2016
0.1.2 Feb 1, 2016
0.1.1 Jan 25, 2016
0.0.17 Jan 11, 2016
0.0.1 May 13, 2015

#5 in #promise

Download history 9/week @ 2020-11-03 11/week @ 2020-11-10 18/week @ 2020-11-17 30/week @ 2020-11-24 10/week @ 2020-12-01 53/week @ 2020-12-08 4/week @ 2020-12-15 2/week @ 2020-12-22 6/week @ 2020-12-29 8/week @ 2021-01-05 9/week @ 2021-01-12 10/week @ 2021-01-19 8/week @ 2021-01-26 7/week @ 2021-02-02 46/week @ 2021-02-09 91/week @ 2021-02-16

111 downloads per month
Used in 2 crates

MIT license

55KB
1K SLoC

Good Job Event Loop

Build Status crates.io

documentation

EXPERIMENTAL! UNSTABLE! A WORK IN PROGRESS!

GJ is a port of the KJ event loop into Rust. Its central abstraction is the Promise<T,E> struct which is similar to Javascript's Promise class.

Promises that are chained recursively can be thought of as lightweight stackless tasks. A GJ event loop allows you to execute many such tasks on a single operating system thread and to safely share mutable data between them without any need for mutexes or atomics.

For a completion-based I/O interface built on top of GJ, see gjio.

No runtime deps