Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 830 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 830 Bytes

Scala Async for Twitter Util Library

twitter-util-async adapts the scala-async library, which only operates with scala.concurrent.Future, to operate with com.twitter.util.Future in the Twitter util library.

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 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.