All Versions
10
Latest Version
Avg Release Cycle
47 days
Latest Release
1545 days ago

Changelog History

  • v1.2.35 Changes

    September 17, 2020

    kotlin 1.4.10
    coroutines-android 1.3.9

  • v1.2.33 Changes

    June 27, 2020

    with kotlin 1.3.72
    coroutines-android 1.3.6
    module migrates to kotlin gradle dsl

  • v1.2.31 Changes

    November 25, 2019

    ๐Ÿ”„ Change function names in IAsyncTasksManager.kt:

    • doTryCatchWithAsync to doWithTryCatchAsync
    • doTryCatchFinallyWithAsync to doWithTryCatchFinallyAsync
    • doTryFinallyWithAsync to doWithTryFinallyAsync
  • v1.2.30 Changes

    November 25, 2019

    ๐Ÿ†• New function with optional parameters:
    ICoroutinesManager.kt:

    • launchOnUiBy
    • launchOnUiAsyncBy

    IAsyncTasksManager.kt:

    • doAsyncAwaitBy
    • doWithAsyncAwaitBy
  • v1.2.21 Changes

    November 20, 2019

    โž• Added new functionality to IAsyncTasksManager.kt using withContext(asyncCoroutineContext):

    • doWithAsync
    • doTryCatchWithAsync
    • doTryCatchFinallyWithAsync
    • doTryFinallyWithAsync
  • v1.2.1 Changes

    November 07, 2019

    โž• Added asyncSupervisorJob in CoroutinesProvider.kt for IAsyncTasksManager.kt

  • v1.2.0 Changes

    November 07, 2019

    ๐Ÿ”จ Many refactoring and changes

    • ICoroutinesManager : IAsyncTasksManager and you can call any async methods inside launchOnUI
      Example:

      class MyCoroutinesWorker : ICoroutinesManager {fun onRepeateButtonClickListener() = launchOnUITryCatchFinally( tryBlock = {val result = doTryCatchAsyncAwait( tryBlock = { println("----> ASYNC 'TRY' BLOCK") delay(3000L) "OPERATION COMPLETE" }, catchBlock = { println("----> ASYNC 'CATCH' BLOCK") throw it } ) }, catchBlock = { // Catch an Error on UI with it }, finallyBlock = { // final block }) }

    • lazy initialization of Dispatcher in CoroutinesProvider.kt

    • 0๏ธโƒฃ default cancelationHandlersSet in CoroutinesProvider.kt and ICoroutinesManager can handle cancelation too

    • val ICoroutinesManager.isCancelled: Boolean and val ICoroutinesManager.isCompleted: Boolean

    • ๐Ÿ‘ท fun ICoroutinesManager.cancelAllCoroutines() - cancel all coroutines with async and UI jobs

    • replace var wasCancelled: Boolean from IAsyncTasksManager.kt by val IAsyncTasksManager.isCancelled: Boolean

    You can launch async task without calling launchOnUI with new functions:

    • launchOnUIAsyncAwait
    • launchOnUITryCatchAsyncAwait
    • launchOnUITryCatchFinallyAsyncAwait
    • launchOnUITryFinallyAsyncAwait
      ๐Ÿ‘ท Block try always will be called on Async Job

    ๐Ÿ“š Documentation added and example changed
    ๐Ÿฑ โค๏ธ Coroutines

  • v1.1.3 Changes

    September 10, 2019

    โž• Add job to constructor properties of AsyncTaskManager.kt and CoroutinesTaskManager.kt
    Kotlin version 1.3.50

  • v1.1.2 Changes

    July 18, 2019

    ๐Ÿ”„ Changed returning type of fun ICoroutinesManager.launchOnUI to Unit

  • v1.1.1 Changes

    July 18, 2019

    ๐Ÿš€ Full API refactor. Major release version
    ๐Ÿ”„ Changed function naming and added much more new functionality to IAsyncTaskManager.kt:

    • doTryCatchAsync
    • doTryCatchFinallyAsync
    • doTryFinallyAsync

    And await function that returns a response value from try... blocks
    Now finally block (CoroutineScope.(Throwable?) -> T) contains error as nullable parameter. If there is some error in coroutine it also passes into finally block too