entropyxyz / manul

Round-based distributed protocols
https://docs.rs/manul
GNU Affero General Public License v3.0
1 stars 1 forks source link

Extend `example/tests/async.rs` to offload message creation/processing to separate tasks #22

Open fjarri opened 6 days ago

fjarri commented 6 days ago

This will demonstrate the target usage pattern for a heavy protocol.

Also I have a suspicion that we won't actually be able to finalize() because it consumes the Session object, and references to it are being sent to tasks, so we will have to wait for all of them to finish, which we won't want to do if there's a threshold needed to finalize (see also #11). So we will need to think of some different API to support this case.