atexit

Function

ArgDescriptionType
queryA VQL Query to parse and execute.Any (required)
envA dict of args to insert into the scope.ordereddict.Dict
timeoutHow long to wait for destructors to run (default 60 seconds).uint64

Description

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

For example:

LET _ <= atexit(query={
  SELECT rm(filename="Foobar.txt") FROM scope()
})
comments powered by Disqus