@univerjscoreclassesAsyncinterceptormanager

@univerjs/core v0.5.0-beta.1Docs


Class: AsyncInterceptorManager<P>

Type Parameters

Type Parameter
P extends Record<string, IAsyncInterceptor<any, any>>

Constructors

new AsyncInterceptorManager()

new AsyncInterceptorManager<P>(asyncInterceptorPoints): AsyncInterceptorManager<P>

Parameters

ParameterType
asyncInterceptorPointsP

Returns

AsyncInterceptorManager<P>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:181

Methods

dispose()

dispose(): void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:210


fetchThroughAsyncInterceptors()

fetchThroughAsyncInterceptors<T, C>(name): (initialValue, context) => Promise<Nullable<T>>

Type Parameters

Type Parameter
T
C

Parameters

ParameterType
nameIAsyncInterceptor<T, C>

Returns

Function

Parameters
ParameterType
initialValueNullable<T>
contextC
Returns

Promise<Nullable<T>>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:185


getInterceptPoints()

getInterceptPoints(): P

Returns

P

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:206


interceptAsync()

interceptAsync<T>(name, interceptor): Promise<() => boolean>

Type Parameters

Type Parameter
T extends IAsyncInterceptor<any, any>

Parameters

ParameterType
nameT
interceptorT

Returns

Promise<() => boolean>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:191