register_writer(
runnable: R,
static: Sequence[tuple[ChannelWriteEntry | Send,Used to mark a runnable as a writer, so that it can be detected by is_writer. Instances of ChannelWrite are automatically marked as writers. Optionally, a list of declared writes can be passed for static analysis.