Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foursquare/twitter-util-async
scala-async support for twitter util library
https://github.com/foursquare/twitter-util-async
Last synced: 3 months ago
JSON representation
scala-async support for twitter util library
- Host: GitHub
- URL: https://github.com/foursquare/twitter-util-async
- Owner: foursquare
- Created: 2014-01-28T19:44:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-08-26T21:55:14.000Z (over 5 years ago)
- Last Synced: 2024-04-14T07:56:10.271Z (10 months ago)
- Language: Scala
- Size: 17.6 KB
- Stars: 15
- Watchers: 185
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scala Async for Twitter Util Library
twitter-util-async adapts the [scala-async library](https://github.com/scala/async), which only operates with
`scala.concurrent.Future`, to operate with `com.twitter.util.Future` in the
[Twitter util library](https://github.com/twitter/util).## Quick Start
Just add the following dependency to your SBT configuration:
libraryDependencies += "com.foursquare" %% "twitter-util-async" % "1.0.0"
See the documentation for [scala-async](https://github.com/scala/async) for information on how to use `async`
and `await`. The main difference is that you must import `com.foursquare.common.async.Async.{async, await}`
instead of `scala.async.Async.{async, await}`. (Also, obviously, `async` returns, and `await` expects, a
`com.twitter.util.Future` instead of a `scala.concurrent.Future`.