All Projects → thepacific → rx-scheduler-transformer

thepacific / rx-scheduler-transformer

Licence: other
rxjava scheduler transformer tools for android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to rx-scheduler-transformer

pytorch-lr-scheduler
PyTorch implementation of some learning rate schedulers for deep learning researcher.
Stars: ✭ 65 (+333.33%)
Mutual labels:  scheduler, transformer
Transformer-MM-Explainability
[ICCV 2021- Oral] Official PyTorch implementation for Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers, a novel method to visualize any Transformer-based network. Including examples for DETR, VQA.
Stars: ✭ 484 (+3126.67%)
Mutual labels:  transformer
Pursuit-Core-Android
Pursuit Core Android
Stars: ✭ 45 (+200%)
Mutual labels:  rxjava2
imdb-transformer
A simple Neural Network for sentiment analysis, embedding sentences using a Transformer network.
Stars: ✭ 26 (+73.33%)
Mutual labels:  transformer
YACLib
Yet Another Concurrency Library
Stars: ✭ 193 (+1186.67%)
Mutual labels:  scheduler
transformer
A simple TensorFlow implementation of the Transformer
Stars: ✭ 25 (+66.67%)
Mutual labels:  transformer
text simplification
Text Simplification Model based on Encoder-Decoder (includes Transformer and Seq2Seq) model.
Stars: ✭ 66 (+340%)
Mutual labels:  transformer
TitleStylist
Source code for our "TitleStylist" paper at ACL 2020
Stars: ✭ 72 (+380%)
Mutual labels:  transformer
Akka.Quartz.Actor
Quartz scheduling actor
Stars: ✭ 50 (+233.33%)
Mutual labels:  scheduler
RxBus
Rx event bus based on RxRelay and custom observer
Stars: ✭ 16 (+6.67%)
Mutual labels:  rxjava2
ptScheduler
Pretty tiny Scheduler or ptScheduler is an Arduino library for writing non-blocking periodic tasks easily.
Stars: ✭ 14 (-6.67%)
Mutual labels:  scheduler
xamarin-forms-demo-app
A demo application in this repository demonstrates the capabilities of the DevExpress Mobile UI for Xamarin.Forms: Data Grid, Editors, Charts, Scheduler, Data Form, and other controls.
Stars: ✭ 74 (+393.33%)
Mutual labels:  scheduler
alpr utils
ALPR model in unconstrained scenarios for Chinese license plates
Stars: ✭ 158 (+953.33%)
Mutual labels:  transformer
android-kick-start-modular
Android Kick Start Project Template Framework FrogoBox || Admob, MVVM Archictecture || Clean Architecture Modularization
Stars: ✭ 16 (+6.67%)
Mutual labels:  rxjava2
ReactiveAwareness
Android library to quickly and easily get the users context using the Awareness API and RxJava
Stars: ✭ 20 (+33.33%)
Mutual labels:  rxjava2
Video-Action-Transformer-Network-Pytorch-
Implementation of the paper Video Action Transformer Network
Stars: ✭ 126 (+740%)
Mutual labels:  transformer
TabFormer
Code & Data for "Tabular Transformers for Modeling Multivariate Time Series" (ICASSP, 2021)
Stars: ✭ 209 (+1293.33%)
Mutual labels:  transformer
YaEtl
Yet Another ETL in PHP
Stars: ✭ 60 (+300%)
Mutual labels:  transformer
humpback-center
Humpback Center 主要为 Humpback 平台提供集群容器调度服务,以集群中心角色实现各个 Group 的容器分配管理。
Stars: ✭ 37 (+146.67%)
Mutual labels:  scheduler
En-transformer
Implementation of E(n)-Transformer, which extends the ideas of Welling's E(n)-Equivariant Graph Neural Network to attention
Stars: ✭ 131 (+773.33%)
Mutual labels:  transformer

rx-scheduler-transformer

Rxjava2 scheduler transformer tools for RxLife in android.

Download

One nice aspect of RxJava is that you can see how data is transformed through a series of operators:

Observable
        .fromCallable(someSource)
        .map(data -> manipulate(data))
        .subscribeOn(Schedulers.io())
        .compose(bindUntilEvent(ActivityEvent.DESTROY))
        .observeOn(AndroidSchedulers.mainThread())
        .subscribe(data -> doSomething(data));

We frequently use subscribeOn(), compose() and observeOn() because we want to process data in a worker thread then subscribe to it on the main thread and look up the Activity or Fragment lifecycle. Now, this tiny library get you rid of it!

Setup

compile 'com.github.thepacific:transformer:0.0.1'

Support

Flowable, Observable, Maybe, Single, and Completable are all supported. Implementation is solely based on their Observer types, so conceivably any type that uses those for subscription should work.

CompletableTransformerUtil for Completable
FlowableTransformerUtil for Flowable
MaybeTransformerUtil for Maybe
ObservableTransformerUtil for Observable
SingleTransformerUtil for Single

// Transform schedulers
// from   Schedulers.io()             to   AndroidSchedulers.mainThread()
// from   Schedulers.computation()    to   AndroidSchedulers.mainThread()
// from   Schedulers.trampoline()     to   AndroidSchedulers.mainThread()
// from   Schedulers.newThread()      to   AndroidSchedulers.mainThread()
// from   Schedulers.single()         to   AndroidSchedulers.mainThread()
// from   Schedulers.from(executor)   to   AndroidSchedulers.mainThread()

Usage

// ObservableTransformerUtil.io(lifecycle(), ActivityEvent.DESTROY))
// ObservableTransformerUtil.computation(lifecycle(), ActivityEvent.DESTROY))
// ObservableTransformerUtil.trampoline(lifecycle(), ActivityEvent.DESTROY))
// ObservableTransformerUtil.newThrea(lifecycle(), ActivityEvent.DESTROY))
// ObservableTransformerUtil.single(lifecycle(), ActivityEvent.DESTROY))
// ObservableTransformerUtil.from(executor, lifecycle(), ActivityEvent.DESTROY))

Observable
        .fromCallable(someSource)
        .map(data -> manipulate(data))
        .compose(ObservableTransformerUtil.io(lifecycle(), ActivityEvent.DESTROY))
        .subscribe(data -> doSomething(data));

License

The MIT License

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