Dispose result
This method should be always called when a result is not needed anymore. It disposes the result and releases allocated resources of that result.
| Method | Parameters | Returns |
|---|---|---|
dispose | ResultState |
Via REST, it is a POST request: POST result/{result-id}/dispose.
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/dispose", {
"@id": "e316a369-bf5b-4c25-a61f-3492cfca9535",
});
console.log(v);
// {
// "@id": "e316a369-bf5b-4c25-a61f-3492cfca9535"
// }
Python IPC
# it is important to dispose a result when it is not needed anymore
result.dispose()