Skip to content

Commit

Permalink
Add TODO about Dispatchers.Unconfined default
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Jul 9, 2024
1 parent fc57d27 commit bc03502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ fun CanvasLayersComposeScene(
density: Density = Density(1f),
layoutDirection: LayoutDirection = LayoutDirection.Ltr,
size: IntSize? = null,
// TODO: Remove `Dispatchers.Unconfined` as a default
coroutineContext: CoroutineContext = Dispatchers.Unconfined,
composeSceneContext: ComposeSceneContext = ComposeSceneContext.Empty,
invalidate: () -> Unit = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ fun PlatformLayersComposeScene(
density: Density = Density(1f),
layoutDirection: LayoutDirection = LayoutDirection.Ltr,
size: IntSize? = null,
// TODO: Remove `Dispatchers.Unconfined` as a default
coroutineContext: CoroutineContext = Dispatchers.Unconfined,
composeSceneContext: ComposeSceneContext = ComposeSceneContext.Empty,
invalidate: () -> Unit = {},
Expand Down

0 comments on commit bc03502

Please sign in to comment.