public static Timer setTimeout ( int milliseconds , TimerCallback callback ) { TimeoutTimer timeout = new TimeoutTimer ( ) ; timeout . setId ( nativeSetTimeout ( milliseconds , callback , timeout ) ) ; return timeout ; }
Defines a one - shot timer .