Use tokio::sync::mpsc::unbounded_channel

refactor(test): use tokio::sync::mpsc::unbounded_channel (#13881)
Use tokio::sync::mpsc::unbounded_channel85cb6f-refactor-use-tokio-sync-mpsc-unbounded-channelrefactoruse tokio sync mpsc unbounded channel

Committed by bartlomieju

commit message
refactor(test): use tokio::sync::mpsc::unbounded_channel (#13881)

This causes to block one less thread when running "deno test"
subcommand.

Editor assessment

The subject names the mechanism exactly: an unbounded tokio channel replaces the previous one. The body states the benefit concretely: one fewer blocked thread when running deno test. That is the why a refactor body should carry, in one sentence. Type refactor and scope test are accurate. No footers beyond the PR number. Hygiene is clean. A proportionate, complete message whose brief body earns its place.

Browse categories

More refactor examples · Back to search