Atlantiraptor Docs

atexit

Type: Function

Install a query to run when the query is unwound. This is used to clean up when the query ends.

Example

LET _ <= atexit(query={
  SELECT rm(filename="Foobar.txt") FROM scope()
})
Argument Type Description
query Any (required) A VQL Query to parse and execute.
env ordereddict.Dict A dict of args to insert into the scope.
timeout uint64 How long to wait for destructors to run (default 60 seconds).

Platforms: macOS, Linux, Windows