Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Serious-senpai committed Apr 15, 2024
1 parent f31a107 commit aeb5e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/src/lock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Lock extends _Lock {
}

/// An [UnfairLock] object is identical to a [Lock] excepts that it wakes up the
/// last future that called [acquire] instead of the first (waiting futures are
/// last future that called [acquire] instead of the first (i.e. waiting futures are
/// put in a LIFO queue).
class UnfairLock extends _Lock {
/// Create a new [UnfairLock] object.
Expand Down
7 changes: 2 additions & 5 deletions lib/src/semaphore.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,8 @@ class BoundedSemaphore extends Semaphore {
: _initial = value,
super(value);

/// Release a permit from the semaphore.
///
/// This method releases a permit from the semaphore, allowing other threads to
/// acquire it. If the value of the semaphore is greater than the initial value,
/// a [BoundedSemaphoreLimitException] is thrown.
/// Release a permit from the semaphore. If the value of the semaphore is greater than the
/// initial value, a [BoundedSemaphoreLimitException] is thrown.
@override
void release() {
super.release();
Expand Down

0 comments on commit aeb5e0f

Please sign in to comment.