(self: TxHashSet<V>)
| 468 | * @since 2.0.0 |
| 469 | */ |
| 470 | export const size = <V>(self: TxHashSet<V>): Effect.Effect<number> => |
| 471 | Effect.gen(function*() { |
| 472 | const set = yield* TxRef.get(self.ref) |
| 473 | return HashSet.size(set) |
| 474 | }) |
| 475 | |
| 476 | /** |
| 477 | * Checks whether the TxHashSet is empty. |