
Brings declared context receivers into its body scope as implicit receivers.Requires all declared context receivers to be present in a caller’s scope as implicit receivers.If you need more, you can make functions, properties, and classes context-dependent (or contextual) by adding context receivers to their declaration. With Kotlin 1.6.20-M1, you are no longer limited to having one receiver. We are now sharing the prototype for Kotlin/JVM. Recently we published the initial design proposal of the feature under the name context receivers. Then whenever you need the context just call application.appContext. The YouTrack issue about supporting multiple receivers has received a lot of upvotes and positive feedback, so prototyping it became a part of our roadmap. Try new features Prototype of context receivers for Kotlin/JVM Often, this context is shared among any issue captured in its lifecycle. Install 1.6.20-M1 to try out these features and report any issues you find to help us improve Kotlin 1.6.20. Custom contexts allow you to attach arbitrary data to an event. Kotlin/Native performance improvements.Easier code sharing with hierarchical structure of multiplatform projects.Faster development with incremental compilation in Kotlin/JS IR.Faster builds with parallel compilation of a single module in the JVM IR backend.


