-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Typically when you think coroutines, you’re actually thinking coroutines + jobs + dispatchers + etc. But dispatchers and even jobs are not part of the core coroutine support in Kotlin. Most of the coroutine goodies are actually in a completely separate library: kotlinx.coroutines . The core coroutine support in Kotlin is basically just the Continuation type, a low level API to get a continuation out of a suspend function, and very low-level support for CoroutineContexts. A continuation is basically just a callback that the compiler generates for you from the body of a suspend function. The stdlib is not opinionated about what kinds of things you can build with these fundamentals. They can be useful for general async multithreaded programming - that’s what kotlinx.coroutines is for – but they can also do other tricks.
The sequence builder's lambda has a receiver type of SequenceScope. This class is annotated with @RestrictsSuspension:
Related posts
-
Coroutines for beginners- the only article you need to get started!
-
I am looking to try game development with LibKTX (and LibGDX). Do you know how I can get helpful documentation for the classes, methods, etc?
-
Our first year with Kotlin Multiplatform
-
Kotlin 2.0 RC1
-
Implementing an Auto-logout Feature for Android in Kotlin