Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-goral authored and mergify-bot committed Jul 12, 2021
1 parent 26d17e2 commit 90a8aeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object Parallel {
protected operator fun <T : Any, V> Type<T>.invoke(select: T.() -> V) = lazyProperty(this, select)

/**
* Internal accessor for initializing (validating) eager properties
* Internal accessor for initializing (validating) eager properties.
*/
internal fun validate() = eager()
}
Expand All @@ -72,8 +72,8 @@ object Parallel {
/**
* The task signature.
*
* @param type A return a type of task
* @param args A set of types for arguments
* @param type A return a type of task.
* @param args A set of argument types.
*/
data class Signature<R : Any>(
val type: Type<R>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package flank.exection.parallel
import flank.exection.parallel.internal.checkThrowableValues

/**
* Verify given [ParallelState] has no errors.
* Verify that given [ParallelState] has no errors.
*/
fun ParallelState.verify(): ParallelState = checkThrowableValues()
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package flank.exection.parallel.internal

import flank.exection.parallel.Parallel

fun <T : Any> dynamicType(type: Class<T>): Parallel.Type<T> = DynamicType(type)
internal fun <T : Any> dynamicType(type: Class<T>): Parallel.Type<T> = DynamicType(type)

internal class DynamicType<T : Any>(val type: Class<T>) : Parallel.Type<T> {
override fun equals(other: Any?): Boolean = (other as? DynamicType<*>)?.type == type
Expand Down

0 comments on commit 90a8aeb

Please sign in to comment.