commit | 7e7d19cf17d3644556ee41fecd870b5d80a021dc | [log] [tgz] |
---|---|---|
author | Stjepan Glavina <stjepang@gmail.com> | Tue Jan 07 22:45:13 2020 +0100 |
committer | Stjepan Glavina <stjepang@gmail.com> | Tue Jan 07 22:45:13 2020 +0100 |
tree | bd11edf611572d82c7af6df5d543ad3f9a2d9ee3 | |
parent | af051a59a21e61ad97dbe5b209fac2a29e5f48fd [diff] [blame] |
Remove libc dependency on non-Unix platforms
diff --git a/src/task.rs b/src/task.rs index b26c082..8ef209c 100644 --- a/src/task.rs +++ b/src/task.rs
@@ -101,6 +101,7 @@ /// // Create a task with the future and the schedule function. /// let (task, handle) = async_task::spawn_local(future, schedule, ()); /// ``` +#[cfg(any(unix, windows))] pub fn spawn_local<F, R, S, T>(future: F, schedule: S, tag: T) -> (Task<T>, JoinHandle<R, T>) where F: Future<Output = R> + 'static,