= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
struct_resolver can be used to resolve some promise.
method pp : Format.formatter -> unit
method resolve : struct_ref -> unit
r#resolve x causes
r's promise to behave as
x in future. The promise takes ownership of
x (is responsible for calling
dec_rec on it).
r#sealed_dispatch brand extracts some private data of the given type.
method set_blocker : base_ref -> (unit, [> `Cycle ]) Pervasives.result
r#set_blocker b means that
resolve won't be called until
b is resolved.
r's promise should report this as its blocker. This is needed to detect cycles. When the blocker is resolved, call this again with
None to clear it (the promise will then report itself as the blocker again, until resolved).