A synchronous Option where the contained value T is guaranteed to be
non-PromiseLike, ensuring immediate availability without awaiting.
This restricted Option variant enforces synchronous values for methods
like insert, getOrInsert,
and getOrInsertWith, which mutate the option.
Use it when you need a type-safe, synchronous option.
A synchronous Option where the contained value
T
is guaranteed to be non-PromiseLike
, ensuring immediate availability without awaiting.This restricted Option variant enforces synchronous values for methods like insert, getOrInsert, and getOrInsertWith, which mutate the option. Use it when you need a type-safe, synchronous option.