workyard-application 0.1.0

Task actions and interface contracts for Workyard
Documentation
1
2
3
4
5
6
7
pub(crate) async fn blocking_action<F>(operation: F) -> F::Output
where
	F: std::future::Future + Send + 'static,
	F::Output: Send + 'static,
{
	smol::unblock(move || smol::block_on(operation)).await
}