Patent ID: 9507650
Filing Date: 2016-11-29
CPC Classification: G06F

Claim Text:
1. A method, implemented at computer system that includes one or more processors, for interleaving immediate callbacks with timer-based callbacks, the method comprising: exposing a first application programming interface (API) to enable immediate callbacks in a client web platform; exposing one or more second APIs to enable timer-based callbacks in the client web platform; receiving, using the first API, a first call that specifies that an immediate callback to a specified function is desired; queuing the immediate callback to the specified function in a non-timer-based queue; subsequent to receiving the first call, receiving, using the one or more second APIs, one or more second calls that specify that one or more timed callbacks to one or more specified functions are desired after one or more time intervals; prior to processing the immediate callback, identifying that the one or more time intervals have lapsed, and queuing the one or more timed callbacks in a timer-based queue based on the one or more timer intervals having lapsed; and interleaving the non-timer-based queue and the timer-based queue so that all timed callbacks in the timer-based queue are processed before any immediate callback in the non-timer-based queue, including: