Code Monkey home page Code Monkey logo

resumequeue's Introduction

ResumeQueue

https://github.com/MFlisar/RXBus에서 Fork함

Observable의 chain에

.lift(RxResumeQueue.<Long>create(resumeStateProvider))

를 추가하면

  1. resumeStateProvider#isResumeState == true 이면 downstream으로 계속 진행

  2. resumeStateProvider#isResumeState == false 이면 life가 받는 upstream이 발행한 항목들을 RxValue의 queue에 저장. 이후 ResumeStateProvider#onResumeChanged() 콜백을 받 으 면 queue에 저장된 항목들이 downstream으로 순차적 발행.

Observable의 작업이 onResume~onPause사이에서만 계속 진행되고, 그 외의 Life cycle에서는 대기되길 원할 때 적용 가능.

resumequeue's People

Watchers

chonamdoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.