Skip to content

Document automatic context propagation #35689

@gatisnolv

Description

@gatisnolv

I feel like the docs should include a simple example demonstrating automatic context propagation. Something akin to framework-docs/src/main/kotlin/org/springframework/docs/languages/kotlin/coroutines/propagation/ContextPropagationSample.kt, but preferably using the simplest canonical constructs: coroutineScope and yield() for the suspension point.

Btw, is there a good reason to use delay(1) for the suspension point in current documentation? I feel like yield() should be more obvious to newcomers.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions