close method

void close()

Closes this callback and releases its resources.

Further calls to existing nativeFunctions will result in undefined behavior. New accesses to nativeFunction will give a nullptr.

This method must not be called more than once on each native callback.

It is safe to call close inside the callback.

Implementation

external void close();