AbortRemoteRequest: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
|||
Line 9: | Line 9: | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''theRequest''': | * '''theRequest''': returned from [[FetchRemote|fetchRemote]], [[CallRemote|callRemote]] or [[GetRemoteRequests|getRemoteRequests]] | ||
==Returns== | ==Returns== |
Revision as of 13:35, 11 October 2019
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 pending requests of currently running resource.
function CMD_abortRequests() local requests = getRemoteRequests() for _, request in ipairs(requests) do abortRemoteRequest() end end addCommandHandler("abortrequests", CMD_abortRequests)
This template will be deleted.
See Also
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo