mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-28 18:42:53 +08:00
👌 IMPROVE: 新增流关闭理由
This commit is contained in:
5
io.go
5
io.go
@@ -71,7 +71,9 @@ func (i *IO[C]) OnEvent(event any) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (io *IO[C]) GetStream() *Stream {
|
||||
return io.Stream
|
||||
}
|
||||
func (io *IO[C]) GetIO() *IO[C] {
|
||||
return io
|
||||
}
|
||||
@@ -86,6 +88,7 @@ type IIO interface {
|
||||
Stop()
|
||||
SetIO(any)
|
||||
SetParentCtx(context.Context)
|
||||
GetStream() *Stream
|
||||
}
|
||||
|
||||
//Stop 停止订阅或者发布,由订阅者或者发布者调用
|
||||
|
||||
Reference in New Issue
Block a user