feat: add services package

This commit is contained in:
Karol Sójko
2022-07-05 20:51:42 +02:00
parent b614c71e79
commit fbfed0a05c
85 changed files with 2418 additions and 28 deletions

View File

@@ -0,0 +1,14 @@
/* istanbul ignore file */
export enum SyncQueueStrategy {
/**
* Promise will be resolved on the next sync request after the current one completes.
* If there is no scheduled sync request, one will be scheduled.
*/
ResolveOnNext = 1,
/**
* A new sync request is guarenteed to be generated for your request, no matter how long it takes.
* Promise will be resolved whenever this sync request is processed in the serial queue.
*/
ForceSpawnNew = 2,
}