MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / CustomPredicate

Function CustomPredicate

assert.go:173–181  ·  view source on GitHub ↗

CustomPredicate checks a custom predicate.

(predicate AssertPredicate)

Source from the content-addressed store, hash-verified

171
172// CustomPredicate checks a custom predicate.
173func CustomPredicate(predicate AssertPredicate) RxAssert {
174 return newAssertion(func(a *rxAssert) {
175 if !a.checkHasCustomPredicate {
176 a.checkHasCustomPredicate = true
177 a.customPredicates = make([]AssertPredicate, 0)
178 }
179 a.customPredicates = append(a.customPredicates, predicate)
180 })
181}
182
183func parseAssertions(assertions ...RxAssert) RxAssert {
184 ass := new(rxAssert)

Calls 1

newAssertionFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…