Runs a given function. Result is wrapped by opt. Returns None when the function throws.
tryRun(() => 1) // Some(1)tryRun(() => { throw new Error(); }) // None
Runs a given function. Result is wrapped by opt. Returns None when the function throws.