outr / async

Scala and Scala.js framework to execute and schedule asynchronous tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async

============

Build Status Stories in Ready Gitter Maven Central Latest version

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)

  • 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

About

Scala and Scala.js framework to execute and schedule asynchronous tasks

License:MIT License


Languages

Language:Scala 100.0%