pub fn increment_ref( a: u8, exec: &impl Spawn, tx: Sender<u8> )
{
	let res = exec.spawn( sum( a, 1, tx ) );

		assert!( res.is_ok() );
}
// A function that takes a generic executor and spawns a task.
//
A function that takes a generic executor and spawns a task.
A function that takes a generic executor and spawns a task .
pub fn increment_ref( a: u8, exec: &impl Spawn, tx: Sender<u8> )
{
	let res = exec.spawn( sum( a, 1, tx ) );
		assert!( res.is_ok() );
}
pub fn increment_ref ( a : u8 , exec : & impl Spawn , tx : Sender < u8 > ) { let res = exec . spawn ( sum ( a , 1 , tx ) ) ; assert ! ( res is_ok ( ) ) ; }
A function that takes a generic executor and spawns a task.
A function that takes a generic executor and spawns a task .
a
u8
exec
&impl Spawn
tx
Sender<u8>
a
u8
exec
&impl Spawn
tx
Sender<u8>