All Versions
8
Latest Version
Avg Release Cycle
19 days
Latest Release
65 days ago

Changelog History

  • v1.2.31

    November 25, 2019

    🔄 Change function names in IAsyncTasksManager.kt:

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

    November 25, 2019

    🆕 New function with optional parameters:
    ICoroutinesManager.kt:

    • launchOnUiBy
    • launchOnUiAsyncBy

    IAsyncTasksManager.kt:

    • doAsyncAwaitBy
    • doWithAsyncAwaitBy
  • v1.2.21

    November 20, 2019

    ➕ Added new functionality to IAsyncTasksManager.kt using withContext(asyncCoroutineContext):

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

    November 07, 2019

    ➕ Added asyncSupervisorJob in CoroutinesProvider.kt for IAsyncTasksManager.kt

  • v1.2.0

    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

    September 10, 2019

    ➕ Add job to constructor properties of AsyncTaskManager.kt and CoroutinesTaskManager.kt
    Kotlin version 1.3.50

  • v1.1.2

    July 18, 2019

    🔄 Changed returning type of fun ICoroutinesManager.launchOnUI to Unit

  • v1.1.1

    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