diff --git a/src/queue/Queue.ts b/src/queue/Queue.ts new file mode 100644 index 0000000000..5435e51c96 --- /dev/null +++ b/src/queue/Queue.ts @@ -0,0 +1,26 @@ +// epic queue +// need to do a couple things: +// 1. integrate fast-check +// 2. integrate span checks +// 3. might also consider span logs? +// 4. open tracing observability +// 5. structured logging +// 6. async hooks to get traced promises to understand the situation +// 7. do we also get fantasy land promises? and async cancellable stuff? +// 8. task abstractions? +// need to use the db for this +// 9. priority structure +// 10. timers +// abort controller + +// timeout scheduling system is task scheduling +// queue is the persistent version of this +// in general you have a job scheduling problem +// but lighter weight + +class Queue { + + +} + +export default Queue; diff --git a/src/queue/index.ts b/src/queue/index.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/timer/Timer.ts b/src/timer/Timer.ts new file mode 100644 index 0000000000..da0f288303 --- /dev/null +++ b/src/timer/Timer.ts @@ -0,0 +1,7 @@ +class Timer { + + protected timer: ReturnType<typeof setTimeout>; + public readonly timerP: Promise<void>; + protected _timedOut: boolean; + +}