MCPcopy Index your code
hub / github.com/dataease/SQLBot / subscribe

Function subscribe

frontend/public/swagger-ui-bundle.js:30778–30793  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

30776 return u
30777 }
30778 function subscribe(s) {
30779 if ('function' != typeof s) throw new Error(formatProdErrorMessage(4))
30780 if (C) throw new Error(formatProdErrorMessage(5))
30781 let o = !0
30782 ensureCanMutateNextListeners()
30783 const i = x++
30784 return (
30785 w.set(i, s),
30786 function unsubscribe() {
30787 if (o) {
30788 if (C) throw new Error(formatProdErrorMessage(6))
30789 ;((o = !1), ensureCanMutateNextListeners(), w.delete(i), (_ = null))
30790 }
30791 }
30792 )
30793 }
30794 function dispatch(s) {
30795 if (!isPlainObject(s)) throw new Error(formatProdErrorMessage(7))
30796 if (void 0 === s.type) throw new Error(formatProdErrorMessage(8))

Callers

nothing calls this directly

Calls 6

formatProdErrorMessageFunction · 0.85
observeStateFunction · 0.85
sFunction · 0.50
setMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected