pub fn channel<T: Sync>( platform: &dyn Platform, allocator: &'static LinearAllocator<'_>, capacity: usize, ) -> Option<(Sender<T>, Receiver<T>)>
Creates a single-producer single-consumer channel.