Spec-Zone.ru › Tokio

Function unconstrained

pub fn unconstrained<F>(inner: F) -> Unconstrained<F> ⓘ
Available on crate feature rt only.

Turn off cooperative scheduling for a future. The future will never be forced to yield by Tokio. Using this exposes your service to starvation if the unconstrained future never yields otherwise.

See also the usage example in the task module.

MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/task/coop/fn.unconstrained.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API