MsieJavaScriptEngine.JsRt.JavaScriptContext.Idle C# (CSharp) Method

Idle() public static method

Tells the runtime to do any idle processing it need to do.

If idle processing has been enabled for the current runtime, calling Idle will inform the current runtime that the host is idle and that the runtime can perform memory cleanup tasks.

Idle will also return the number of system ticks until there will be more idle work for the runtime to do. Calling Idle before this number of ticks has passed will do no work.

Requires an active script context.

public static Idle ( ) : uint
return uint
        public static uint Idle()
        {
            uint ticks;
            Native.ThrowIfError(Native.JsIdle(out ticks));
            return ticks;
        }