Skip to content

Commit

Permalink
WIP: queue, timer and tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Jul 31, 2022
1 parent 216b2c9 commit 716bcd3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/queue/Queue.ts
Original file line number Diff line number Diff line change
@@ -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;
Empty file added src/queue/index.ts
Empty file.
7 changes: 7 additions & 0 deletions src/timer/Timer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Timer {

protected timer: ReturnType<typeof setTimeout>;
public readonly timerP: Promise<void>;
protected _timedOut: boolean;

}

0 comments on commit 716bcd3

Please sign in to comment.