use crate::{Completable, DynGeneratable};
use cancel_this::Cancellable;
pub trait Generatable<T>: Iterator<Item = Cancellable<T>> {
fn try_next(&mut self) -> Option<Completable<T>>;
fn dyn_generatable(self) -> DynGeneratable<T>
where
Self: Sized + 'static,
{
Box::new(self)
}
}