Skip to content

Commit

Permalink
more documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
karupanerura committed Feb 21, 2015
1 parent 2ba8c35 commit 3b5c340
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ Test::SharedObject provides atomic data operation between multiple process.
});

- $shared->set($value)

Set `$value` as shared value.
The syntactic sugar for `$shared->txn()`.

- my $value = $shared->get()

Get shared value.
The syntactic sugar for `$shared->txn()`.

# LICENSE
Expand Down
4 changes: 4 additions & 0 deletions lib/Test/SharedObject.pm
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ Bad Example:
=item $shared->set($value)
Set C<$value> as shared value.
The syntactic sugar for C<$shared-E<gt>txn()>.
=item my $value = $shared->get()
Get shared value.
The syntactic sugar for C<$shared-E<gt>txn()>.
=back
Expand Down

0 comments on commit 3b5c340

Please sign in to comment.