https://github.com/outr/async
Scala and Scala.js framework to execute and schedule asynchronous tasks
https://github.com/outr/async
Last synced: 2 months ago
JSON representation
Scala and Scala.js framework to execute and schedule asynchronous tasks
- Host: GitHub
- URL: https://github.com/outr/async
- Owner: outr
- License: mit
- Created: 2016-12-10T18:52:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-13T03:34:18.000Z (over 9 years ago)
- Last Synced: 2025-03-17T11:21:26.064Z (over 1 year ago)
- Language: Scala
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# async
============
[](https://travis-ci.org/outr/async)
[](https://waffle.io/outr/async)
[](https://gitter.im/outr/async)
[](https://maven-badges.herokuapp.com/maven-central/com.outr/async_2.12)
[](https://index.scala-lang.org/com.outr/async/asyncZZ)
Scala and Scala.js framework to execute and schedule asynchronous tasks
## Setup
async is published to Sonatype OSS and Maven Central supporting Scala and Scala.js on 2.11 and 2.12.
Configuring the dependency in SBT is as follows:
```
libraryDependencies += "com.outr" %% "async" % "1.0.0"
```
or for Scala.js:
```
libraryDependencies += "com.outr" %%% "async" % "1.0.0"
```
## Concepts
The goal of this framework is to provide a very simple abstraction for scheduled tasks in a consistent way between Scala
and Scala.js. We currently rely on Akka's `Scheduler` on the JVM and JavaScript's `window.setInterval` on JS.
## Using
### Imports
Async is intended to be a minimalistic framework. As such, all the functionality you'll need access to is easily
available in one import:
```
import com.outr.async._
```
### Scheduling Tasks
TODO: Write
### Features for 1.0.0 (In-Progress)
* [X] Basic Scheduling of Tasks
* [ ] Easy access to one-time scheduling
* [ ] Convenience functionality to schedule for a specific time daily
* [ ] Convenience functionality to schedule for a specific date and time
* [ ] Workflow system
* [ ] Complete code coverage
* [ ] Fully documented