This commit is contained in:
parent
abbc6277f4
commit
39107505c2
@ -21,6 +21,7 @@ smc_a = SimpleMessageChannel()
|
|||||||
smc_b = SimpleMessageChannel()
|
smc_b = SimpleMessageChannel()
|
||||||
|
|
||||||
payload = smc_b.send(0, 1, b"foo")
|
payload = smc_b.send(0, 1, b"foo")
|
||||||
|
print(f"sent: {payload})
|
||||||
|
|
||||||
for idx in range(0, len(payload)):
|
for idx in range(0, len(payload)):
|
||||||
smc_a.recv(payload[idx, idx + 1])
|
smc_a.recv(payload[idx, idx + 1])
|
||||||
@ -32,5 +33,6 @@ for msg in smc_a.messages:
|
|||||||
Output:
|
Output:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
sent: ...
|
||||||
received: (0, 1, b"foo")
|
received: (0, 1, b"foo")
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user