Esempio n. 1
0
        internal static void _scheduleImmediate(ZoneCallback callback)
        {
            Isolate.ensureExists();

            GCHandle callabackHandle = GCHandle.Alloc(callback);

            UIMonoState_scheduleMicrotask(_scheduleMicrotask, (IntPtr)callabackHandle);
        }
Esempio n. 2
0
        void _enqueue()
        {
            Isolate.ensureExists();

            GCHandle callbackHandle = GCHandle.Alloc(this);

            UIMonoState_postTaskForTime(_postTaskForTime, (IntPtr)callbackHandle, _wakeupTime * MILLI_TO_NANO);
        }