Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  p = Promise.withResolvers()
  navigator.locks.request(
    "foo",
    p.promise,
  )
  p.resolve()
I guess there’s room for .requestWithResolvers() still, they rarely learn the first lesson. Even the $subj article seems to be unaware of it and uses the silly wrapper way.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: