Skip to content

Move some async utils from tor-proto to tor-async-utils

From !3066 (comment 3217780), and I think someone else mentioned a while ago about possibly moving tor_proto::util::oneshot_broadcast.

I think it makes sense to move all of:

  • tor_proto::util::oneshot_broadcast
  • tor_proto::util::token_bucket
  • tor_proto::util::notify

to tor-async-utils. Originally I thought we should wait until (or if) they have more users before moving them to a common crate, but I changed my mind.

I'm making this an issue rather than just doing it now because I don't want to move anything at the moment as I have a bunch of unmerged changes and don't want to cause merge conflicts.

/cc @dgoulet