mirror of
https://github.com/LiteyukiStudio/magicoca.git
synced 2024-11-15 13:24:25 +08:00
✨ 添加通道连接特性,可用+连接两个通道,连接后将交换双方的接收端
This commit is contained in:
parent
ffd7847fb1
commit
8e94cd996f
@ -92,7 +92,7 @@ class Chan(Generic[T]):
|
|||||||
"""
|
"""
|
||||||
return self.recv(None)
|
return self.recv(None)
|
||||||
|
|
||||||
def __add__(self, other: "Chan[T]") -> "Chan[T]":
|
def __add__(self, other: "Chan[T]"):
|
||||||
"""
|
"""
|
||||||
Connect 1 channel.send to another channel.recv.
|
Connect 1 channel.send to another channel.recv.
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
Reference in New Issue
Block a user