@tscommon/synchronized
Version:
In an async environment, a race condition occurs when two or more async operations attempt to update mutable shared data at the same time. @synchronized decorator offers a mechanism to avoid race conditions by synchronizing async operations access to shar
5 lines • 301 B
TypeScript
/**
* Synchronize method calls on the same object.
*/
export declare function synchronized<T extends (...args: any) => Promise<any>>(_target: object, _propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
//# sourceMappingURL=synchronized.d.ts.map