File tree 1 file changed +3
-12
lines changed 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 1
- # Scala Async Project
2
-
3
- [ ![ Build Status] ( https://secure.travis-ci.org/scala/async.png )] ( http://travis-ci.org/scala/async )
1
+ # scala-async [ <img src =" https://img.shields.io/travis/scala/async.svg " />] ( https://travis-ci.org/scala/async ) [ <img src =" https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-async_2.10.svg?label=latest%20release%20for%202.10 " />] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-async_2.10 ) [ <img src =" https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-async_2.11*.svg?label=latest%20release%20for%202.11 " />] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-async_2.11* )
4
2
5
3
Note: this branch targets Scala 2.11.x, support for Scala 2.10.x has been moved to [ this branch] ( https://github.com/scala/async/tree/2.10.x ) .
6
4
7
5
## Quick start
8
6
9
- Add a dependency:
10
-
11
- ``` scala
12
- // SBT
13
- libraryDependencies += " org.scala-lang.modules" %% " scala-async" % " 0.9.2"
14
- ```
15
-
16
- Write your first ` async ` block:
7
+ After adding a scala-async to your classpath, write your first ` async ` block:
17
8
18
9
``` scala
19
10
import ExecutionContext .Implicits .global
@@ -146,6 +137,6 @@ difficult to understand.
146
137
- See the [ neg] ( https://github.com/scala/async/tree/master/src/test/scala/scala/async/neg ) test cases for
147
138
for constructs that are not allowed in a async block
148
139
- See the [ issue list] ( https://github.com/scala/async/issues?state=open ) for which of these restrictions are planned
149
- to be dropped in the next milestone .
140
+ to be dropped in the future .
150
141
- See [ #13 ] ( https://github.com/scala/async/issues/13 ) for why ` await ` is not possible in closures, and for suggestions on
151
142
ways to structure the code to work around this limitation.
You can’t perform that action at this time.
0 commit comments