Function atm_async_utils::test_channel::test_channel
[−]
[src]
pub fn test_channel<I, E>(
capacity: usize
) -> (TestSender<I, E>, TestReceiver<I, E>)
Create a test channel of a given capacity.
I
is the type of items sent over the channel, E
is the type of errors sent over the channel.
Panics
Panics if the given capacity is 0.