mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 09:40:12 +00:00
12 lines
367 B
Go
12 lines
367 B
Go
//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
|
|
}
|