UNPKG

@contextjs/system

Version:
15 lines (14 loc) 340 B
import { Environment } from "./models/environment.js"; export class Application { functions = []; environment = new Environment(); async runAsync() { for (let func of this.functions) await func(); return this; } onRun(event) { this.functions.push(event); return this; } }