Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Naive implementation of cas()
  • Loading branch information
lizmat committed Apr 16, 2014
1 parent fbf3873 commit 15c145b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/asyncops.pm
Expand Up @@ -14,6 +14,8 @@ multi sub await(Channel $c) {
$c.receive
}

sub cas (\val,&code) { code(val) } # naive implementation of cas

sub INVOKE_KV(&block, $key, $value?) {

my @names = map *.name, &block.signature.params;
Expand Down

0 comments on commit 15c145b

Please sign in to comment.