MCPcopy Create free account

hub / github.com/chebyrash/promise / functions

Functions31 in github.com/chebyrash/promise

↓ 20 callersFunctionNew
( executor func(resolve func(T), reject func(error)), )
promise.go:17
↓ 15 callersMethodAwait
(ctx context.Context)
promise.go:104
↓ 6 callersFunctionNewWithPool
( executor func(resolve func(T), reject func(error)), pool Pool, )
promise.go:23
↓ 3 callersFunctionAll
All resolves when all promises have resolved, or rejects immediately upon any of the promises rejecting
promise.go:142
↓ 3 callersFunctionCatchWithPool
( p *Promise[T], ctx context.Context, reject func(err error) error, pool Pool, )
promise.go:88
↓ 3 callersFunctionRace
Race resolves or rejects as soon as any one of the promises resolves or rejects
promise.go:189
↓ 3 callersFunctionThenWithPool
( p *Promise[A], ctx context.Context, resolve func(A) (B, error), pool Pool, )
promise.go:57
↓ 2 callersFunctionThen
( p *Promise[A], ctx context.Context, resolve func(A) (B, error), )
promise.go:49
↓ 2 callersFunctionnewDefaultPool
()
pool.go:26
↓ 2 callersMethodreject
(err error)
promise.go:120
↓ 1 callersFunctionAllWithPool
( ctx context.Context, pool Pool, promises ...*Promise[T], )
promise.go:149
↓ 1 callersFunctionFromAntsPool
(p *ants.Pool)
pool.go:36
↓ 1 callersFunctionFromConcPool
(p *conc.Pool)
pool.go:32
↓ 1 callersMethodGo
(f func())
pool.go:13
↓ 1 callersFunctionRaceWithPool
( ctx context.Context, pool Pool, promises ...*Promise[T], )
promise.go:196
↓ 1 callersMethodhandlePanic
()
promise.go:127
FunctionCatch
( p *Promise[T], ctx context.Context, reject func(err error) error, )
promise.go:80
MethodGo
(f func())
pool.go:22
FunctionSetDefaultPool
(p Pool)
pool.go:16
FunctionTestAll_ContainsRejected
(t *testing.T)
promise_test.go:139
FunctionTestAll_Happy
(t *testing.T)
promise_test.go:120
FunctionTestAll_OnlyRejected
(t *testing.T)
promise_test.go:158
FunctionTestNew
(t *testing.T)
promise_test.go:19
FunctionTestNewWithPool
(t *testing.T)
promise_test.go:26
FunctionTestPromise_Catch
(t *testing.T)
promise_test.go:90
FunctionTestPromise_Panic
(t *testing.T)
promise_test.go:101
FunctionTestPromise_Then
(t *testing.T)
promise_test.go:65
FunctionTestRace_ContainsRejected
(t *testing.T)
promise_test.go:195
FunctionTestRace_Happy
(t *testing.T)
promise_test.go:177
FunctionTestRace_OnlyRejected
(t *testing.T)
promise_test.go:212
Methodresolve
(value T)
promise.go:113