Type Definition glommio::Local [−][src]
type Local = Task<()>;
Local is an ergonomic way to access the local executor. The local is executed through a Task type, but the Task type has a type parameter consisting of the return type of the future encapsulated by this task.
However for associated functions without a self parameter, like local()
and local_into()
, the type is always ()
and Rust is not able to elide.
Writing Task::<()>::function()
works, but it is not very ergonomic.