Commit Graph

15 Commits

Author SHA1 Message Date
David Craven 75316e2982
Add interval api. (#41)
* Add interval api.

* Fix workflows.

* Address review comments.

* Don't tick immediately.

* Increase allowed jitter for ci.
2020-11-28 20:54:01 +01:00
Stjepan Glavina 79c2d904fe Update futures-lite 2020-10-09 14:33:16 +02:00
Stjepan Glavina e49452d7f0 Fix CI 2020-09-23 12:13:02 +02:00
Stjepan Glavina 82c7e59107 Remove let _ pattern 2020-09-13 13:41:08 +02:00
Sergey Bugaev ff2ca89cd4
Less boxing (#26)
* Get rid of boxing inside Async<>

We want Async<T> to always impl Unpin. Turns out, boxing the inner value
is unnecessary for this; and as we never pin the inner value, we can just
implement Unpin for ourselves explicitly.

See https://doc.rust-lang.org/std/pin/index.html#pinning-is-not-structural-for-field
on why this is safe and sound :)

* Do not box streams

Unfortunately, this means we also don't automatically pin them.
The caller can manually pin them (using the pin! macro, or Box::pin(),
or any other method) if needed. That is a slight API break.
2020-09-09 20:25:25 +02:00
Stjepan Glavina 733111d135 Replace parking with block_on() 2020-08-26 23:09:14 +02:00
Stjepan Glavina d3b5cd401e Small refactor for v1.0 2020-08-12 17:50:26 +02:00
Stjepan Glavina 62b7875b77 Add Timer::reset() 2020-07-24 11:23:20 +02:00
Stjepan Glavina b26b7c60d8 Update dependencies 2020-07-24 10:58:47 +02:00
Stjepan Glavina d71be5d5b5 Reduce the number of dependencies 2020-07-19 19:21:58 +02:00
Stjepan Glavina 2314c2dbe7 Portable close() test 2020-07-13 20:33:38 +02:00
Stjepan Glavina 38d7035a54 Shut down the socket on close() 2020-07-13 19:40:37 +02:00
Stjepan Glavina 07b6cca545 Always use the last waker when polling a Timer 2020-07-13 12:41:02 +02:00
Stjepan Glavina e2951fcf2a Cleanup 2020-06-29 12:25:53 +02:00
Stjepan Glavina baf8968624 Initial commit 2020-06-28 22:15:55 +02:00