Techniques may have a finalize method, which will be invoked in when
calling session.finalize() for each unique finalize function that was
inserted via session.insertScore(...) since the last call to
session.finalize. Note that the when finalize methods are not associated
with any particular technique instance, so .this will be undefined inside
the finalize method invocation.
The order that finalizers will be called in is undefined. It's a good idea
to make finalizers idempotent because a finalizer may be called more than
one if the user does the following:
Techniques may have a finalize method, which will be invoked in when calling
session.finalize()
for each unique finalize function that was inserted viasession.insertScore(...)
since the last call tosession.finalize
. Note that the when finalize methods are not associated with any particular technique instance, so.this
will be undefined inside the finalize method invocation.The order that finalizers will be called in is undefined. It's a good idea to make finalizers idempotent because a finalizer may be called more than one if the user does the following:
session.finalize() // finalizer invoked a second time