Skip to content

Commit

Permalink
Fixed a few spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nnoodle authored Aug 27, 2020
1 parent 0ccb014 commit 6191e6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrent processes running on different threads. For example, before accessing
a non-threadsafe resource, a thread will lock the mutex. This is guaranteed
to block the thread until no other thread holds a lock on the mutex and thus
enforces exclusive access to the resource. Once the operation is complete, the
thread releases the lock, allowing other threads to aquire a lock and access the
thread releases the lock, allowing other threads to acquire a lock and access the
resource.

While Javascript is strictly single-threaded, the asynchronous nature of its
Expand Down Expand Up @@ -128,7 +128,7 @@ available and ready to be accessed. The promise resolves with a function `releas
must be called once the mutex should be released again.

**IMPORTANT:** Failure to call `release` will hold the mutex locked and will
lilely deadlock the application. Make sure to call `release` under all circumstances
likely deadlock the application. Make sure to call `release` under all circumstances
and handle exceptions accordingly.

#### Alternate release API
Expand Down Expand Up @@ -237,7 +237,7 @@ function that must be called to release the semaphore once the critical operatio
has completed.

**IMPORTANT:** Failure to call `release` will hold the semaphore locked and will
lilely deadlock the application. Make sure to call `release` under all circumstances
likely deadlock the application. Make sure to call `release` under all circumstances
and handle exceptions accordingly.

#### Alternate release API
Expand Down Expand Up @@ -324,7 +324,7 @@ to both semaphores and mutexes and changes the behavior of `acquire` and
The API of the decorated mutex or semaphore is unchanged.

The second argument of `withTimeout` is
the timout in milliseconds. After the timeout is exceeded, the promsie returned by
the timeout in milliseconds. After the timeout is exceeded, the promise returned by
`acquire` and `runExclusive` will reject. The latter will not run the provided callback in
case of an timeout.

Expand Down

0 comments on commit 6191e6d

Please sign in to comment.