Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Fixed: not returning coroutine job. Increased version to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vovahost authored and johsoe committed Feb 5, 2019
1 parent 5363e11 commit 5c9092a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 19
targetSdkVersion 28
versionCode 6
versionName "2.3.0"
versionName "2.3.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion app/maven-push.gradle
Expand Up @@ -12,7 +12,7 @@ allprojects { ext."signing.password" = System.getenv('password') }

// Artifact settings
def _group = 'dk.nodes.arch'
def _version = '2.3.0'
def _version = '2.3.1'
def _archivesBaseName = 'base'

def _name = 'Nodes Architecture Library'
Expand Down
Expand Up @@ -108,16 +108,16 @@ abstract class BasePresenterImpl<V> : BasePresenter<V>, LifecycleObserver {
defaultCoroutineContext = mainThreadSurrogate + job
}

fun launchOnUI(block: suspend CoroutineScope.() -> Unit) {
mainScope.launch(context = mainCoroutineContext, block = block)
fun launchOnUI(block: suspend CoroutineScope.() -> Unit): Job {
return mainScope.launch(context = mainCoroutineContext, block = block)
}

fun launchOnIO(block: suspend CoroutineScope.() -> Unit) {
ioScope.launch(context = mainCoroutineContext, block = block)
fun launchOnIO(block: suspend CoroutineScope.() -> Unit): Job {
return ioScope.launch(context = mainCoroutineContext, block = block)
}

fun launch(block: suspend CoroutineScope.() -> Unit) {
defaultScope.launch(context = defaultCoroutineContext, block = block)
fun launch(block: suspend CoroutineScope.() -> Unit): Job {
return defaultScope.launch(context = defaultCoroutineContext, block = block)
}

fun <T> asyncOnUI(block: suspend CoroutineScope.() -> T): Deferred<T> {
Expand Down

0 comments on commit 5c9092a

Please sign in to comment.