Optional
argsA function that returns the args needed to restore an instance.
The command to execute when restoring instances.
A function that returns a unique persistent name for this instance.
Optional
whenThe point after which it is safe to restore state.
The state restoration configuration options.
Typeparam
T - The type of object held by the restorable collection.