diff options
author | Carl Lerche <me@carllerche.com> | 2018-03-02 15:45:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 15:45:35 -0800 |
commit | 7db77194194851fcc7cad4d68f0481941fb8a285 (patch) | |
tree | b28f8e70f17b20543a463168b460bbecc9215c6c /examples/echo-udp.rs | |
parent | 21c0f3a9d814e37222a70b18c55921a2395804ee (diff) |
Tweak the `tokio::spawn` function (#171)
Currently, `tokio::spawn` matched the `spawn` function from futures 0.2.
However, this adds additional ergonomic overhead and removes the ability
to spawn from a drop fn. See rust-lang-nursery/futures-rs#830.
This patch switches the behavior to access the thread-local variable
referencing the default executor directly in the `spawn` function.
Diffstat (limited to 'examples/echo-udp.rs')
0 files changed, 0 insertions, 0 deletions