dispose method
void
dispose()
Implementation
void dispose() {
if (_disposed) {
return;
}
// If the instance has not been disposed then
// dispose the async runner and call the foreign
// finalizer to free the foreign instance.
asyncRunner.dispose();
_foreignFinalizer(_handle);
_finalizer.detach(this);
_disposed = true;
}