WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=fac6bb2d171472f63c4e7a20844f63781fbfcc56
commit fac6bb2d171472f63c4e7a20844f63781fbfcc56 Author: Andrew Williams <[email protected]> Date: Fri Oct 20 11:09:28 2017 -0700 Wiki page throttle changed with summary [Move Javascript docs to legacy API] by Andrew Williams --- pages/api/javascript/ecore/throttle.txt | 38 +-------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/pages/api/javascript/ecore/throttle.txt b/pages/api/javascript/ecore/throttle.txt index 76f4850f..5b90a436 100644 --- a/pages/api/javascript/ecore/throttle.txt +++ b/pages/api/javascript/ecore/throttle.txt @@ -1,37 +1 @@ -===== Javascript binding API - Ecore Throttle ===== - -[[api:javascript:ecore|Back to the JS Ecore page]] - -**DRAFT** - -These functions manage the amount of "voluntary throttling" ecore will do to its main loop while running. This is intended to be used to limit animations and wakeups when in a strict power management state. The higher the current throttle value (which can be retrieved by ''efl.Ecore.Throttle.get()''), the more throttling takes place. If the current throttle value is 0, then no throttling takes place at all. - -The value represents how long the ecore main loop will sleep (in seconds) before it goes into a fully idle state waiting for events, input or timing events to wake it up. For example, if the current throttle level is 0.5, then after every time the main loop cycles and goes into idle after processing all events, the main loop will explicitly sleep for 0.5 seconds before sitting and waiting for incoming events or timeouts, thus preventing animation, async IO and network handling etc. for t [...] - -==== Functions ==== - -=== adjust(amount) === - -Syntax - -<code javascript> - efl.Ecore.Throttle.adjust(amount); -</code> - -Parameters - - * amount - A number with the amount, in seconds, that will be changed on the throttling setting. Can be positive (increase throttle) or negative (decrease throttle). - -Changes the throttling value by ''amount''. - -=== get() === - -Syntax - -<code javascript> - var throttle = efl.Ecore.Throttle.get(); -</code> - -Return value - - * integer - The amount of throttling. \ No newline at end of file +This page is redirected to [[:develop:legacy:api:javascript:ecore:throttle]]. \ No newline at end of file --
