AbortRemoteRequest: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(One intermediate revision by one other user not shown) | |||
Line 16: | Line 16: | ||
==Example== | ==Example== | ||
This example aborts all requests. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function CMD_abortRequests() | function CMD_abortRequests() | ||
Line 28: | Line 28: | ||
addCommandHandler("abortrequests", CMD_abortRequests) | addCommandHandler("abortrequests", CMD_abortRequests) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Resource functions}} | {{Resource functions}} |
Latest revision as of 17:17, 7 November 2024
Aborts a fetchRemote or callRemote request.
Syntax
bool abortRemoteRequest( request theRequest )
Required Arguments
- theRequest: returned from fetchRemote, callRemote or getRemoteRequests
Returns
Returns true on success, false when invalid request was provided
Example
This example aborts all requests.
function CMD_abortRequests() local requests = getRemoteRequests() for _, request in ipairs(requests) do abortRemoteRequest(request) end end addCommandHandler("abortrequests", CMD_abortRequests)
See Also
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo