Bug #2524

ecmascript: missing showtime.sleep

Added by Anatoly Shcherbinin over 8 years ago. Updated almost 8 years ago.

Status:FixedStart date:01/28/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

0%

Category:Ecmascript & Duktape
Target version:4.10
Found in version:latest Platform:OS X

Description

showtime.sleep function is missing now.
I have fixed it and created pull request:
https://github.com/andoma/showtime/pull/181
Please accept it.

History

#1 Updated by Andreas Smas over 8 years ago

  • Status changed from New to Fixed
  • Target version set to 4.10

I merged it but mostly for convenience.

During the sleep() the plugin is blocked (so all other invocations of the plugin will be blocked while sleeping).

Please consider using setTimeout() or setInterval() instead.

#2 Updated by Leonid Protasov almost 8 years ago

Andreas Ă–man wrote:

I merged it but mostly for convenience.

During the sleep() the plugin is blocked (so all other invocations of the plugin will be blocked while sleeping).

Please consider using setTimeout() or setInterval() instead.

it is there, i use it in navi-x and somewhere else :) But it's param changed from milliseconds to seconds...
showtime.sleep(1); that is 1 second delay.

Also available in: Atom PDF