G
gamehack
Hello all,
I've been wondering lately how would I go about writing async
functions. What I thought of is basically using a queue and when the
function is called, it justs enqueues the call. Then the actual
function which does the work checks the queue every now and then and
processes the elements. But how am I going to schedule the functions
to check the queue? Is this going to be dependent on the underlying
platform? I've tried to google around to find any pointers on
strategies how to implement async functions and didn't find any. Any
pointers are greatly appreciated.
Regards
I've been wondering lately how would I go about writing async
functions. What I thought of is basically using a queue and when the
function is called, it justs enqueues the call. Then the actual
function which does the work checks the queue every now and then and
processes the elements. But how am I going to schedule the functions
to check the queue? Is this going to be dependent on the underlying
platform? I've tried to google around to find any pointers on
strategies how to implement async functions and didn't find any. Any
pointers are greatly appreciated.
Regards