use super::effect::Effect;
use crate::capability::HNil;
use crate::failure::Exit;
use crate::runtime::{BlockOnInAsync, Runtime};
#[allow(
clippy::disallowed_methods,
reason = "G-nb: the convenience blocking edges themselves, delegating to `Runtime`"
)]
impl<A: Send + 'static, E: Send + 'static> Effect<A, E, HNil> {
pub fn block_on(self) -> Exit<A, E> {
Runtime::global().block_on(self)
}
pub fn try_block_on(self) -> Result<Exit<A, E>, BlockOnInAsync> {
Runtime::global().try_block_on(self)
}
}