By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| """An atomic, thread-safe incrementing counter.""" | |
| import threading | |
| class AtomicCounter: | |
| """An atomic, thread-safe incrementing counter. | |
| >>> counter = AtomicCounter() | |
| >>> counter.increment() |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| import org.reactivecouchbase.ReactiveCouchbaseDriver | |
| import scala.concurrent.Future | |
| import play.api.libs.json._ | |
| object Application extends App { | |
| val driver = ReactiveCouchbaseDriver() | |
| val bucket = driver.bucket("default") | |
| implicit val ec = ExecutionContext.fromExecutor(Executors.newSingleThreadExecutor()) | |
| implicit val keys = Seq("key-1", "key-2", "key-3") |
Press minus + shift + s and return to chop/fold long lines!