You are currently looking at the v6.0 - v8.2 docs (Reason v3.6 syntax edition). You can find the latest API docs here.
(These docs cover all versions between v3 to v8 and are equivalent to the old BuckleScript docs before the rebrand)
Promise
Provide bindings to JS promise.
t
REtype t(+'a);
error
REtype error;
make
RElet make: ((~resolve: (. 'a) => unit, ~reject: (. exn) => unit) => unit) => t('a);
resolve
RElet resolve: 'a => t('a);
reject
RElet reject: exn => t('a);
all
RElet all: array(t('a)) => t(array('a));
all2
RElet all2: ((t('a0), t('a1))) => t(('a0, 'a1));
all3
RElet all3: ((t('a0), t('a1), t('a2))) => t(('a0, 'a1, 'a2));
all4
RElet all4: ((t('a0), t('a1), t('a2), t('a3))) => t(('a0, 'a1, 'a2, 'a3));
all5
RElet all5: ((t('a0), t('a1), t('a2), t('a3), t('a4))) => t(('a0, 'a1, 'a2, 'a3, 'a4));
all6
RElet all6: ((t('a0), t('a1), t('a2), t('a3), t('a4), t('a5))) => t(('a0, 'a1, 'a2, 'a3, 'a4, 'a5));
race
RElet race: array(t('a)) => t('a);
then_
RElet then_: ('a => t('b), t('a)) => t('b);
catch
RElet catch: (error => t('a), t('a)) => t('a);