Skip to content

Don't throw when lock isn't acquired

Compare
Choose a tag to compare
@Julien-R44 Julien-R44 released this 14 Mar 12:02
· 17 commits to main since this release

Breaking changes

These breaking changes are important and radically alter the way Verrou works, so make sure to read it

  • run, runImmediately, acquire, acquireImmediately do not throw anymore when lock hasn't been acquired. See this PR that document it. You should now check explicitly the return value of acquire to see if lock was acquired or not
  • run and runImmediately methods will return a tuple with the first value being a boolean indicating if the lock was acquired or not. Also see this PR

API should now be stable and we don't expect further breaking changes

Commits

  • doc: update doc accordingly (1281cb5)
  • refactor!: do not throw anymore when can't acquire lock (94ce278)
  • chore: add japa/expect-type (14a529a)

Full Changelog: https://github.com/Julien-R44/verrou/compare/[email protected]@0.4.0