Table of Contents generated with DocToc

@Delay

The @Delay decorator is used to delay the application of a method for a given number of milliseconds, after it is invoked. This provides the same functionality as the Lodash Delay utility.

Usage:

class C {
    @Delay(wait)
    myMethod() {

    }
}

As an example, if wait is 1000 (1 second), then the following code will wait 1 second before executing myMethod:

var c = new C();
c.myMethod();

results matching ""

    No results matching ""