Skip to content

Commit

Permalink
#cho phép spawn bất cứ child <T> nào với parent
Browse files Browse the repository at this point in the history
  • Loading branch information
magicghostVu committed Jul 2, 2022
1 parent 20a025f commit 895ebe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/magicghostvu/actor/Behaviors.kt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ object Behaviors {
}

@OptIn(ObsoleteCoroutinesApi::class)
fun <T> ActorScope<T>.spawnChild(
fun <T> ActorScope<*>.spawnChild(
debug: Boolean = false,
factory: suspend () -> Behavior<T>
): MActorRef<T> {
Expand Down

0 comments on commit 895ebe3

Please sign in to comment.