MCPcopy Index your code
hub / github.com/php/frankenphp / Set

Method Set

internal/state/state.go:128–133  ·  view source on GitHub ↗
(nextState State)

Source from the content-addressed store, hash-verified

126}
127
128func (ts *ThreadState) Set(nextState State) {
129 ts.mu.Lock()
130 ts.currentState = nextState
131 ts.notifySubscribers(nextState)
132 ts.mu.Unlock()
133}
134
135func (ts *ThreadState) notifySubscribers(nextState State) {
136 if len(ts.subscribers) == 0 {

Calls 1

notifySubscribersMethod · 0.95