pub fn spawn_writer_task<W>( writer: W, config: WriterConfig, ) -> (WriterHandle, JoinHandle<Result<()>>)where W: AsyncWrite + Unpin + Send + 'static,
Spawn the writer task and return a handle for sending frames.
writer
config
A tuple of (WriterHandle, JoinHandle) where the JoinHandle can be used to wait for the writer task to complete.
(WriterHandle, JoinHandle)