Attempts to eject the volume mounted at the given path.
- macOS 10.6+
The URL of the volume to eject.
If the operation fails, this error contains more information about the failure.
true if the system successfully unmounted and ejected the volume; otherwise
false. For example, the method might return
false if the volume is not ejectable.
You can safely call this method from any thread of your app.