What it does
Frees an API task and the answer it holds.
Syntax
ApiFree(tache integer) → integerParameters
| Name | Type | Meaning |
|---|---|---|
| tache | integer | The task id returned by ApiRequest(). |
Every form returns
integer
1 if the task existed, 0 otherwise.
Good to know
- After this call the id is unknown: ApiStatus() returns -1.
- Editor and HTML5 exports only: native (Bevy) builds stop with an unsupported-command error.
Example · generated
DO Print(ApiFree(1)) Sync()LOOPApiFree is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.