Thomasdezeeuw / gaea

Low-level library to build event driven applications, supporting lightweight non-blocking I/O.
https://docs.rs/gaea/
MIT License
16 stars 0 forks source link

Add Awakener #45

Closed Thomasdezeeuw closed 5 years ago

Thomasdezeeuw commented 5 years ago

Awakener allows cross-thread waking of a Poller instance.

eduardosm commented 5 years ago

That's weird, it looks like that cloning the awakener (adding let awakener2 = awakener.try_clone().unwrap()) to the awakener() test, it passes. But then, doc-test poll::Poller seems to block forever.

Thomasdezeeuw commented 5 years ago

@cynecx I've pushed a commit with your suggestions, let's see if it works :).

Thomasdezeeuw commented 5 years ago

It worked, thanks @cynecx and @eduardosm.