summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/qtest.lua
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-31 11:35:30 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-31 11:35:30 -0400
commitc59f8bc59ad958d169a7626739b2b81439180537 (patch)
tree1d50bc9e0ea5fd8fead50d42d4f111d2cd12dd7f /indra/newview/scripts/lua/qtest.lua
parente352192045cfe23a681dcaba71d94311f42e230f (diff)
Add leap.eventstream() and cancelreq() functions.
leap.eventstream() is used when we expect the viewer's LLEventAPI to send an immediate first response with the reqid from the request, followed by some number of subsequent responses bearing the same reqid. The difference between eventstream() and generate() is that generate() expects the caller to request each such response, whereas eventstream calls the caller's callback with each response. cancelreq() is for canceling the background fiber launched by eventstream() before the callback tells it to quit. Make WaitFor:close() remove the object from the waitfors list; similarly, make WaitForReqid:close() remove the object from the pending list. For this reason, cleanup() must iterate over a copy of each of the pending and waitfors lists. Instead of unregisterWaitFor() manually searching the waitfors list, use table.find().
Diffstat (limited to 'indra/newview/scripts/lua/qtest.lua')
0 files changed, 0 insertions, 0 deletions