class DemoComponent {
constructor() {}
@timeout()
demoMethod() {
// This code will run at the next tick...
}
// With a number
@timeout(2000)
demoMethod() {
// This code will run at the next tick...
}
}
new DemoComponent().demoMethod();