onReadOnlyAccessReleaseRequested
Notification that read-only access to the map is being revoked (usually because the map needs to be updated or otherwise modified).
The listener should stop all operations which access the map and invoke the callback provided as the first parameter to signal it has done so (and after invoking it, it no longer has any kind of access to the map!). If it is not possible to stop any ongoing operations, the listener can save the callback and call it later, after its operations have finished (unless it receives onReadOnlyAccessGranted in the meantime, which means that shared access is no longer being revoked).
In either case, the implementation of onReadOnlyAccessReleaseRequested should return as quickly as possible and not stall.
Parameters
a function or function-like object which should be called by the user after it stops accessing the map files to signal that it has released access to the map.