Skip to content

Commit

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

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

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

Expand Down

0 comments on commit fae1d09

Please sign in to comment.