Experimental API: May be changed in next release and may not yet work perfectly!
This method blocks until all background JavaScript tasks have finished executing. Background JavaScript tasks are JavaScript tasks scheduled for execution via window.setTimeout, window.setInterval or asynchronous XMLHttpRequest.
If a job is scheduled to begin executing after (now + timeoutMillis), this method will wait for timeoutMillis milliseconds and then return a value greater than 0. This method will never block longer than timeoutMillis milliseconds.
Use this method instead of {@link #waitForBackgroundJavaScriptStartingBefore(long)} if youdon't know when your background JavaScript is supposed to start executing, but you're fairly sure that you know how long it should take to finish executing.
@param timeoutMillis the maximum amount of time to wait (in milliseconds) @return the number of background JavaScript jobs still executing or waiting to be executed when thismethod returns; will be 0 if there are no jobs left to execute
|
|