Skip to content

Commit

Permalink
Update README.md to include generic interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
havelessbemore committed May 13, 2024
1 parent 5229822 commit 2616a14
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ yarn add semafy

## API

### Generic

- **BasicLockable**: A base interface that provides exclusive blocking for agents.

- **Lockable**: Extends `BasicLockable` to include attempted locking.

- **SharedLockable**: Provides shared blocking semantics for agents.

- **SharedResource**: Represents a shared resource that is backed by a `SharedArrayBuffer`.

- **SharedTimedLockable**: Extends `SharedLockable` to include timed blocking.

- **TimedLockable**: Extends `Lockable` to include timed blocking.

### Mutex

- **Mutex**: Provides essential mutex operations including `lock`, `unlock`, and `tryLock`.
Expand Down

0 comments on commit 2616a14

Please sign in to comment.