method
Sync.add
Sync.add(atomic, delta) -> int
Add to the counter; return the new value.
Example
let a = Sync.atomic() let total = Sync.add(a, 1)
Sync.add(atomic, delta) -> int
Add to the counter; return the new value.
let a = Sync.atomic() let total = Sync.add(a, 1)