I find it readable, but I do sympathize. I would have like to have seen it look more like an ML language such as OCaml or F#.
Async rust isn't pretty. If you are using async rust, and want to borrow data, use an Arc<T>. In fact, if you ever use tokio::spawn, you will have to use Arc<T> anyway because it requires 'static lifetime.
I find it readable, but I do sympathize. I would have like to have seen it look more like an ML language such as OCaml or F#.
Async rust isn't pretty. If you are using async rust, and want to borrow data, use an Arc<T>. In fact, if you ever use tokio::spawn, you will have to use Arc<T> anyway because it requires 'static lifetime.