logo

Coding Matrix in Rust | 2023-10-23

time1 yr agoview1 views

Continuing our Matrix bot that can send us a message at a certain time. Figuring out how to send messages over a channel to the bot, which actually does the sending, instead of sending them directly.

This time:

  • Simplifying our function signature to handle the fact that sending over a channel is not async
  • Polling the future we were waiting on before as well as the channel receiver, using tokio::switch!

Next time:

  • Figure out why messages are not sending when we put them into the channel
Loading comments...