fromRunnable
Construct a Disposable by wrapping a Runnable that is executed exactly once when the Disposable is disposed.
Return
the new Disposable instance
Parameters
run
the Runnable to wrap
Throws
if run is null
Construct a Disposable by wrapping a Runnable that is executed exactly once when the Disposable is disposed.
the new Disposable instance
the Runnable to wrap
if run is null