tests/testthat/_snaps/then.md

tee types are handled correctly

Code
  then(promise_resolve(1), tee = 4)
Condition
  Error in `then()`:
  ! `tee` must be `TRUE` or `FALSE`
Code
  catch(promise_resolve(1), function(err) { }, tee = "4")
Condition
  Error in `catch()`:
  ! `tee` must be `TRUE` or `FALSE`


Try the promises package in your browser

Any scripts or data that you put into this service are public.

promises documentation built on Nov. 5, 2025, 6:03 p.m.