A one-shot async computation that caches its future value. All callers
receive the same Future the function is called at most once, no
matter how many times call is invoked concurrently.
Safe error / exception inspection helpers. Designed so you can feed
literally Object? (as you get from catch blocks) and always get a
readable string without crashing.
Kicks off an async computation in the background and returns a
"lazy" Future that only starts when first awaited. This is a thin
wrapper that makes Future-returning closures composable.
Set algebra helpers ?union / intersection / difference / symmetric
difference ?plus a few convenient constructors that preserve order via
LinkedHashSet.
Leading-edge throttle: execute fn immediately and return true at most
once per duration window for the same callback instance; calls inside
the window are swallowed and return false.
Run fn and return its Future. If it completes before timeout elapses
the result is returned; otherwise onTimeout is called (defaults to
returning null) and the original Future is dropped (still runs in the
background).