From 1429cd780204624b4d244e7d8179fe6ff77988c3 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 19 Jan 2021 12:15:29 +1100 Subject: [PATCH] Add note on simultanous execution of the protocol --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 70cbab50..85f312b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -322,6 +322,9 @@ where } } +/// A behaviour that can execute await/.async protocols. +/// +/// Note: It is not possible to execute the same protocol with the same peer several simultaneous times. pub struct Behaviour { protocol_in_events: VecDeque<(PeerId, ProtocolInEvent)>, protocol_out_events: VecDeque<(PeerId, ProtocolOutEvent)>,