MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / constructor

Method constructor

packages/hydrooj/src/model/task.ts:41–45  ·  view source on GitHub ↗
(public filter: any, public func: (t: Task) => Promise<void>, public destroyOnError = true, private concurrency = 1)

Source from the content-addressed store, hash-verified

39 notify: (res?: any) => void;
40
41 constructor(public filter: any, public func: (t: Task) => Promise<void>, public destroyOnError = true, private concurrency = 1) {
42 this.consuming = true;
43 this.consume();
44 bus.on('app/exit', this.destroy);
45 }
46
47 async consume() {
48 while (this.consuming) {

Callers

nothing calls this directly

Calls 2

consumeMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected