blob: 9af821409f79f4de818d8c9d6c6c98ae9e54dcbb [file] [log] [blame]
use futures::future::FutureObj;
use futures::task::{Spawn, SpawnObjError};
pub struct PanicExecutor;
impl Spawn for PanicExecutor {
fn spawn_obj(&mut self, _: FutureObj<'static, ()>) -> Result<(), SpawnObjError> {
panic!("should not spawn")
}
}