Closed Thomasdezeeuw closed 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.
@cynecx I've pushed a commit with your suggestions, let's see if it works :).
It worked, thanks @cynecx and @eduardosm.
Awakener allows cross-thread waking of a
Poller
instance.