pub fn increment_clone( a: u8, exec: impl Spawn + Clone, tx: Sender<u8> )
{
	let second = exec.clone();
	drop( exec );

	let res = second.spawn( sum( a, 1, tx ) );

		assert!( res.is_ok() );
}
// A function that takes a generic executor by value, clones it and spawns a task.
//
A function that takes a generic executor by value, clones it and spawns a task.
A function that takes a generic executor by value clones it and spawns a task .
pub fn increment_clone( a: u8, exec: impl Spawn + Clone, tx: Sender<u8> )
{
	let second = exec.clone();
	drop( exec );
	let res = second.spawn( sum( a, 1, tx ) );
		assert!( res.is_ok() );
}
pub fn increment_clone ( a : u8 , exec : impl Spawn + Clone , tx : Sender < u8 > ) { let second = exec . clone ( ) ; drop ( exec ) ; let res = second . spawn ( sum ( a , 1 , tx ) ) ; assert ! ( res is_ok ( ) ) ; }
A function that takes a generic executor by value, clones it and spawns a task.
A function that takes a generic executor by value clones it and spawns a task .
a
u8
exec
impl Spawn + Clone
tx
Sender<u8>
a
u8
exec
impl Spawn + Clone
tx
Sender<u8>