All Projects → inaka → Tinytask

inaka / Tinytask

Licence: apache-2.0
A Tiny Task Library

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Tinytask

Then
🎬 Tame async code with battle-tested promises
Stars: ✭ 908 (+188.25%)
Mutual labels:  async, task
Flowa
🔥Service level control flow for Node.js
Stars: ✭ 66 (-79.05%)
Mutual labels:  async, task
Fennel
A task queue library for Python and Redis
Stars: ✭ 24 (-92.38%)
Mutual labels:  async, task
Laravel S
LaravelS is an out-of-the-box adapter between Swoole and Laravel/Lumen.
Stars: ✭ 3,479 (+1004.44%)
Mutual labels:  async, task
Vue Concurrency
A library for encapsulating asynchronous operations and managing concurrency for Vue and Composition API.
Stars: ✭ 147 (-53.33%)
Mutual labels:  async, task
Asyncawaitbestpractices
Extensions for System.Threading.Tasks.Task and System.Threading.Tasks.ValueTask
Stars: ✭ 693 (+120%)
Mutual labels:  async, task
Rq
Simple job queues for Python
Stars: ✭ 8,065 (+2460.32%)
Mutual labels:  async, task
Fun Task
Abstraction for managing asynchronous code in JS
Stars: ✭ 363 (+15.24%)
Mutual labels:  async, task
Unityfx.async
Asynchronous operations (promises) for Unity3d.
Stars: ✭ 143 (-54.6%)
Mutual labels:  async, task
Fsharp.control.fusiontasks
F# Async workflow <--> .NET Task/ValueTask easy seamless interoperability library.
Stars: ✭ 101 (-67.94%)
Mutual labels:  async, task
Taskmanager
A simple、 light(only two file)、fast 、powerful 、easy to use 、easy to extend 、 Android Library To Manager your AsyncTask/Thread/CallBack Jobqueue ! 一个超级简单,易用,轻量级,快速的异步任务管理器,类似于AsyncTask,但是比AsyncTask更好用,更易控制,从此不再写Thread ! ^_^
Stars: ✭ 25 (-92.06%)
Mutual labels:  async, task
Asyncex
A helper library for async/await.
Stars: ✭ 2,794 (+786.98%)
Mutual labels:  async, task
Swimmer
🏊 Swimmer - An async task pooling and throttling utility for JS
Stars: ✭ 94 (-70.16%)
Mutual labels:  async, task
Taskbuilder.fs
F# computation expression builder for System.Threading.Tasks
Stars: ✭ 217 (-31.11%)
Mutual labels:  async, task
Task Easy
A simple, customizable, and lightweight priority queue for promises.
Stars: ✭ 244 (-22.54%)
Mutual labels:  async, task
Clearly
Clearly see and debug your celery cluster in real time!
Stars: ✭ 287 (-8.89%)
Mutual labels:  task
Sqlalchemy aio
Asyncio strategy for SQLAlchemy.
Stars: ✭ 299 (-5.08%)
Mutual labels:  async
React Loadable
⏳ A higher order component for loading components with promises.
Stars: ✭ 16,238 (+5054.92%)
Mutual labels:  async
Aiologger
Asynchronous logging for python and asyncio
Stars: ✭ 284 (-9.84%)
Mutual labels:  async
Amp
A non-blocking concurrency framework for PHP applications. 🐘
Stars: ✭ 3,457 (+997.46%)
Mutual labels:  async

TinyTask

A tiny Android library to create async background tasks. Highly inspired by NanoTasks, but with a funnier API :)

Abstract

Android's AsyncTasks are highly criticized for being bad, unreliable, outdated, etc. Are they perfect? No. Do we have better alternatives? Sure, but sometimes all we want is a quick and simple way to run something in the background.

What is it, really?

Just a tiny wrapper around an AsyncTask, with a funny looking API.

How to download and Install

Add the following to your build.gradle file:

repositories {
	maven {
		url "https://jitpack.io"
	}
}

dependencies {
	// ...
  compile 'com.github.inaka:tinytask:v1'
  // ...
}

Code Example

The API methods should be self-explanatory :)

TinyTask.perform(new Something<String>() {
            @Override
            public String whichDoes() {
                return doWork(); // you write this method..
            }

        }).whenDone(new DoThis<String>() {
            @Override
            public void ifOK(String result) {
                Log.i(TAG, result);
            }

            @Override
            public void ifNotOK(Exception e) {
                Log.i(TAG, e.toString());
            }
        }).go();

Contact Us

For questions or general comments regarding the use of this library, please use our public hipchat room.

If you find any bugs or have a problem while using this library, please open an issue in this repo (or a pull request :)).

And you can check all of our open-source projects at inaka.github.io

Thanks to

NanoTasks for inspiration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].