mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 17:50:12 +00:00
feat(agentcompat): add scoped IO stream capabilities
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//go:build agentcompat
|
||||
|
||||
package rpc
|
||||
|
||||
// SetIOStreamStateWaitObserverForAgentcompat installs a deterministic harness
|
||||
// seam for observing that a waiter captured its notification channel.
|
||||
func (s *NezhaHandler) SetIOStreamStateWaitObserverForAgentcompat(observer func()) {
|
||||
s.ioStreamMutex.Lock()
|
||||
defer s.ioStreamMutex.Unlock()
|
||||
s.ioStreamWaitLockedHook = observer
|
||||
}
|
||||
Reference in New Issue
Block a user