Lifetime
Forces new and hydrated instances to be temporary.
Type | Since | Scoped |
---|---|---|
Declaration | 0.0.3 | No |
Constructor
[Lifetime] = number
Usage
Usage is simple; when using New()
, set an index to [Lifetime]
, with a value equal to the lifetime in seconds.
New(MyObject, {
[Lifetime] = 5 -- Delete after 5 seconds
})