
DSL engine enabling natural DSL-based asynchronous workflows with scoped inputs, parallel/pooled collection operations, configurable retries, timeouts, delays, and multiple async cancellation strategies.
- ..- .-. -... --- -.. ... .-.. - ..- .-. -... --- -.. ... .-..
___________ ______
___ ___/ __/ / ________ _____ ___
__ /__ __ _,___ / /_ ____ __ __ \ / ___/ / /
____ // / / // ___// __ \ / __ \ ____ / / / \ \ / /
__ // /_/ // / / (_/ // (_/ / __ /_/ /___\ \ / /___
_____/ \__,_//_/ /_,___/ \____/ _________//_____//______/
io.turbodsl
- ..- .-. -... --- -.. ... .-.. - ..- .-. -... --- -.. ... .-..
A DSL-engine to turbo-charge your Kotlin development.
io.turbodslwill not make your application faster, but will make your development easier, and most importantly, write asynchronous code in a natural way using DSL expressions.
io.turbodsl:io-turbodsl-core:1.2.6 :
io.turbodsl:io-turbodsl-core:1.2.5 :
Default includes value evaluationexecuteScope in RuntimeScope uses scope delay and default implicitly.
RetryScope sets them explicitly.ScopeExcepion to abstract from sealed to allow subclassing from other modules.io.turbodsl:io-turbodsl-core:1.2.4 :
Default constants to represent 0, 1, -1.throwOnFailure for AsyncScopes.AsyncResult.io.turbodsl:io-turbodsl-core:1.2.3 :
Default mechanisms update.it for collection scopes.async for all collection DSL expressions.io.turbodsl:io-turbodsl-core:1.2.2 : Additional functionality for collections
map, filter, forEach, all, any, none, and contains.async to avoid naming mistakes with existing Kotlin functions.AsyncScope to trigger sequential execution for debug / development purposes.io.turbodsl:io-turbodsl-core:1.2.1 : Some-breaking changes
default parameter has a default value Undefined.Parameter
defaultFun parameter to avoid creating instances when a default value is not neededTurboDslError extends Error to separate scope-exception hierarchy.ScopeImplementationException into ScopeImplementationError, extending TurboDslError
io.turbodsl:io-turbodsl-core:1.2.0 : Breaking changes
context to input
dispatcher to context to follow Kotlin standards for CoroutineContext
retry {...} expression - refactored to its own RetryScope
io.turbodsl:io-turbodsl-core:1.1.0 : Minor bug fixesio.turbodsl:io-turbodsl-core:1.0.0 : Initial release// build.gradle.kts
repositories {
maven()
// Also through github-packages
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/migueltt/io-turbodsl")
credentials {
username = <github-user>
password = <github-personal-access-token>
}
}
}
dependencies {
implementation("io.turbodsl:io-turbodsl-core:<version>")
}
Check https://github.com/migueltt/io-turbodsl-tutorial
TurboScope.execute {
job { ... }
async(
job1 = asyncJob {...},
job2 = asyncJob {...},
// up to 10 jobs
job10 = asyncJob {...},
) { ok, r1, r2, ..., r10 ->
// process results
}
async {
// Add any number of asynchronous jobs
asyncJob {...}
:
}
}Check https://www.turbodsl.io
TurboDSL usage more idiomaticinput. If it is not explicitly specified, it inherits the parent's input.
AsyncMode.CancelNone: Continue even if any job fails.AsyncMode.CancelFirst: Cancel running jobs as soon as something fails, keeping results from those completed jobs.AsyncMode.CancelAll: If one job fails, cancel all other jobs.RetryMode.OnTimeoutOnly: Retry only when timeout limit has been reached.RetryMode.OnErrorOnly: Retry only when an unexpected error was thrown.RetryMode.Always: Retry always, for any error.RetryMode.Never: Never retry. - ..- .-. -... --- -.. ... .-.. - ..- .-. -... --- -.. ... .-..
___________ ______
___ ___/ __/ / ________ _____ ___
__ /__ __ _,___ / /_ ____ __ __ \ / ___/ / /
____ // / / // ___// __ \ / __ \ ____ / / / \ \ / /
__ // /_/ // / / (_/ // (_/ / __ /_/ /___\ \ / /___
_____/ \__,_//_/ /_,___/ \____/ _________//_____//______/
io.turbodsl
- ..- .-. -... --- -.. ... .-.. - ..- .-. -... --- -.. ... .-..
A DSL-engine to turbo-charge your Kotlin development.
io.turbodslwill not make your application faster, but will make your development easier, and most importantly, write asynchronous code in a natural way using DSL expressions.
io.turbodsl:io-turbodsl-core:1.2.6 :
io.turbodsl:io-turbodsl-core:1.2.5 :
Default includes value evaluationexecuteScope in RuntimeScope uses scope delay and default implicitly.
RetryScope sets them explicitly.ScopeExcepion to abstract from sealed to allow subclassing from other modules.io.turbodsl:io-turbodsl-core:1.2.4 :
Default constants to represent 0, 1, -1.throwOnFailure for AsyncScopes.AsyncResult.io.turbodsl:io-turbodsl-core:1.2.3 :
Default mechanisms update.it for collection scopes.async for all collection DSL expressions.io.turbodsl:io-turbodsl-core:1.2.2 : Additional functionality for collections
map, filter, forEach, all, any, none, and contains.async to avoid naming mistakes with existing Kotlin functions.AsyncScope to trigger sequential execution for debug / development purposes.io.turbodsl:io-turbodsl-core:1.2.1 : Some-breaking changes
default parameter has a default value Undefined.Parameter
defaultFun parameter to avoid creating instances when a default value is not neededTurboDslError extends Error to separate scope-exception hierarchy.ScopeImplementationException into ScopeImplementationError, extending TurboDslError
io.turbodsl:io-turbodsl-core:1.2.0 : Breaking changes
context to input
dispatcher to context to follow Kotlin standards for CoroutineContext
retry {...} expression - refactored to its own RetryScope
io.turbodsl:io-turbodsl-core:1.1.0 : Minor bug fixesio.turbodsl:io-turbodsl-core:1.0.0 : Initial release// build.gradle.kts
repositories {
maven()
// Also through github-packages
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/migueltt/io-turbodsl")
credentials {
username = <github-user>
password = <github-personal-access-token>
}
}
}
dependencies {
implementation("io.turbodsl:io-turbodsl-core:<version>")
}
Check https://github.com/migueltt/io-turbodsl-tutorial
TurboScope.execute {
job { ... }
async(
job1 = asyncJob {...},
job2 = asyncJob {...},
// up to 10 jobs
job10 = asyncJob {...},
) { ok, r1, r2, ..., r10 ->
// process results
}
async {
// Add any number of asynchronous jobs
asyncJob {...}
:
}
}Check https://www.turbodsl.io
TurboDSL usage more idiomaticinput. If it is not explicitly specified, it inherits the parent's input.
AsyncMode.CancelNone: Continue even if any job fails.AsyncMode.CancelFirst: Cancel running jobs as soon as something fails, keeping results from those completed jobs.AsyncMode.CancelAll: If one job fails, cancel all other jobs.RetryMode.OnTimeoutOnly: Retry only when timeout limit has been reached.RetryMode.OnErrorOnly: Retry only when an unexpected error was thrown.RetryMode.Always: Retry always, for any error.RetryMode.Never: Never retry.