# Structured concurrency

A programming discipline for designing concurrent programs by organizing tasks into a tree, with child tasks completing before their parents and cancellation propagating to children.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## LazyAgent: Demand-Driven Materialization and Physical Optimization of Agentic Programs

DevFeed: [LazyAgent: Demand-Driven Materialization and Physical Optimization of Agentic Programs](<https://devfeed.tech/articles/lazyagent-demand-driven-materialization-and-physical-optimization-of-agentic-programs-111922.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2609.23058>)

Author: Xin Heng

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Multi-step AI processes](<https://devfeed.tech/topics/multi-step-ai-processes.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-runtimes](<https://devfeed.tech/tags/agent-runtimes.md>), [agent-workflows](<https://devfeed.tech/tags/agent-workflows.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [application](<https://devfeed.tech/tags/application.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [bill](<https://devfeed.tech/tags/bill.md>), [build](<https://devfeed.tech/tags/build.md>), [call](<https://devfeed.tech/tags/call.md>), [can](<https://devfeed.tech/tags/can.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [changes](<https://devfeed.tech/tags/changes.md>), [ci](<https://devfeed.tech/tags/ci.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [demand](<https://devfeed.tech/tags/demand.md>), [materialization](<https://devfeed.tech/tags/materialization.md>), [optimization](<https://devfeed.tech/tags/optimization.md>)

### AI overview

LazyAgent executes a ready workflow step only when the current request needs it, using an exact demanded set computed in one traversal without model calls; the set remains exact as plans change. Its authors report that an eager runtime spent 62.2% of CPU on unneeded work across 303 requests and 154 production workflows. Against that runtime, LazyAgent reportedly cut production-workflow CPU by 42.0%, tied when the request needed the whole graph, and added at most 0.43% overhead. Other reported results include 51.7% and 52.1% less container time on release gates, 12.8% fewer tokens on DataSciBench plans at matched quality, and 24.0% lower cost in a live LangGraph application, with no losses. The known demand cost can also guide workflow choice before execution. The abstract argues current public agent benchmarks cannot reveal these savings because they are designed like eager runtimes.

### Source excerpt

arXiv:2609.23058v2 Announce Type: replace Abstract: Agent runtimes that plan before acting run every step as soon as it is ready. Neither these runtimes nor their benchmarks distinguish a step that is ready from a step the request needs, and the difference is large: across 303 requests on 154 production workflows, an eager runtime that stops once the goal is met spends 62.2% of its CPU on work the request never needed. LazyAgent is, to our knowledge, the first complete formulation of demand-driven execution for agent runtimes. Its rule: run a ready step only if the current request needs it, and keep that answer exact as the plan changes. A demanded set derived from the program decides, in one traversal with no model calls, so LazyAgent spends nothing outside the request. Because demand is defined exactly, its behavior is proved: builders know before any run where demand must save and where it must tie. The bill is known before a plan runs, so LazyAgent can act as a query optimizer to choose among candidate workflows. Measured live against that eager runtime, LazyAgent saves 51.7% and 52.1% of container time on release gates where a frontier LLM writes the patches, 12.8% of tokens on DataSciBench plans at matched quality, and 24.0% of dollars inside a live LangGraph application, with no losses. When the LLM re-plans after real code failures, it solves every solvable goal with 11.7% fewer tokens per goal. On the production workflows it saves 42.0% of CPU, ties exactly where a request needs the whole graph, and adds at most 0.43% overhead. The same set steers every physical operation: projection saves 80-89% of a shared CI step, where the identical eager control saves 0.0%. Public agent benchmarks are designed the same way as eager runtimes, so they cannot show this difference. We compose our test programs from their tasks and call on industry to build benchmarks that measure how efficiently agent workflows run.

## Run Scale AI's AgentEnv evals on Vercel Sandbox

DevFeed: [Run Scale AI's AgentEnv evals on Vercel Sandbox](<https://devfeed.tech/articles/run-scale-ai-s-agentenv-evals-on-vercel-sandbox-100656.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/run-scale-ais-agentenv-evals-on-vercel-sandbox>)

Author: Elisabeth Rülke

Published: 2026-10-26T18:19:23.427320Z

Content type: tutorial

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [AI Sandbox](<https://devfeed.tech/topics/ai-sandbox.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [cli](<https://devfeed.tech/tags/cli.md>), [command](<https://devfeed.tech/tags/command.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [environment](<https://devfeed.tech/tags/environment.md>), [evals](<https://devfeed.tech/tags/evals.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [example](<https://devfeed.tech/tags/example.md>), [existing](<https://devfeed.tech/tags/existing.md>), [framework](<https://devfeed.tech/tags/framework.md>), [guide](<https://devfeed.tech/tags/guide.md>), [inspect](<https://devfeed.tech/tags/inspect.md>), [learn](<https://devfeed.tech/tags/learn.md>), [run](<https://devfeed.tech/tags/run.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [scale-ai](<https://devfeed.tech/tags/scale-ai.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

AgentEnv 0.9.1334 and later includes a Vercel provider that runs the agent and task environment in separate Vercel Sandboxes. After completing the setup guide and cloning the repository, run `./vercel-eval --scope YOUR_TEAM --project YOUR_PROJECT`, replacing the placeholders with your Vercel team slug and an existing project name; the command uses your existing Vercel CLI login. The example lets you inspect the task score and the agent's recorded actions.

### Source excerpt

AgentEnv, Scale AI's framework for testing agents against tasks and scoring their results, now runs on Vercel Sandbox. The Vercel provider ships in AgentEnv 0.9.1334 and later, and runs the agent and its task environment in separate Sandboxes. Try the AgentEnv example to run an evaluation on Vercel Sandbox and inspect the task's score and the agent's recorded actions. After completing the setup guide, run this command from the cloned repository. It uses your existing Vercel CLI login: Replace YOUR_TEAM with your Vercel team slug and YOUR_PROJECT with an existing project name. Learn more in the Sandbox ecosystem documentation. Read more

## JEP targeted to JDK 28: 543: Structured Concurrency

DevFeed: [JEP targeted to JDK 28: 543: Structured Concurrency](<https://devfeed.tech/articles/jep-targeted-to-jdk-28-543-structured-concurrency-92514.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/21/jep543-target-jdk28/>)

Author: Viktor Klang

Published: 2026-10-21T00:00:00Z

Content type: release

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Exception handling](<https://devfeed.tech/topics/exception-handling.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [async](<https://devfeed.tech/topics/async.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-28](<https://devfeed.tech/tags/jdk-28.md>), [jep](<https://devfeed.tech/tags/jep.md>), [project-loom](<https://devfeed.tech/tags/project-loom.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

JEP 543 proposes finalizing Structured Concurrency in JDK 28 without further API changes. `StructuredTaskScope` groups related subtasks in a lexical scope: the owner forks them, joins them as a unit, and closes the scope, which cancels remaining subtasks and waits for them to terminate. The default policy fails when a subtask fails and cancels unfinished siblings; interruption of the owner also propagates cancellation. `Joiner` options support other completion policies, including returning the first successful result or collecting all successful results. Thread dumps can show scopes and their subtasks as a hierarchy. Cancellation depends on subtasks responding to interruption; uninterruptible work can delay scope closure indefinitely. The API is intended to complement, not replace, `ExecutorService` and `Future`, and is described as a preview through JDK 27.

### Source excerpt

The following JEP is targeted to JDK 28: 543: Structured Concurrency

## JEP 543 Finalizes Structured Concurrency in JDK 28, Ending Seven Preview Rounds

DevFeed: [JEP 543 Finalizes Structured Concurrency in JDK 28, Ending Seven Preview Rounds](<https://devfeed.tech/articles/jep-543-finalizes-structured-concurrency-in-jdk-28-ending-seven-preview-rounds-89986.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/10/jep-543-jdk-28/>)

Author: A N M Bazlur Rahman

Published: 2026-10-19T14:30:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [development](<https://devfeed.tech/tags/development.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk-28](<https://devfeed.tech/tags/jdk-28.md>), [jep](<https://devfeed.tech/tags/jep.md>), [jep-543-jdk-28](<https://devfeed.tech/tags/jep-543-jdk-28.md>), [news](<https://devfeed.tech/tags/news.md>), [preview](<https://devfeed.tech/tags/preview.md>), [project-loom](<https://devfeed.tech/tags/project-loom.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

JDK 28 finalizes structured concurrency through JEP 543, preserving the API established in JDK 27. JDK 27 users can migrate by removing preview flags and recompiling; users of earlier previews must account for API changes to joiner exceptions and timeout handling. The article also explains task cancellation, completion policies, scope configuration, and constraints on how scopes are used.

### Source excerpt

JDK 28 finalizes structured concurrency through JEP 543, with no API changes from JDK 27. Teams on JDK 27 only need to drop --enable-preview and recompile. Code written for JDK 25 or 26 must adapt to the R_X exception type parameter, ExecutionException wrapping, and the abstract timeout() joiner callback. By A N M Bazlur Rahman

## The Ghost Work Left Behind by Cancelled Coroutines

DevFeed: [The Ghost Work Left Behind by Cancelled Coroutines](<https://devfeed.tech/articles/the-ghost-work-left-behind-by-cancelled-coroutines-89749.md>)

Original publisher: [Read original article](<https://proandroiddev.com/the-ghost-work-left-behind-by-cancelled-coroutines-a892bd467a6b?source=rss----c72404660798---4>)

Author: Rohan Maity | RotBolt

Published: 2026-10-18T19:56:04Z

Content type: article

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [cancellation](<https://devfeed.tech/topics/cancellation.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Exception handling](<https://devfeed.tech/topics/exception-handling.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [suspend function](<https://devfeed.tech/topics/suspend-function.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [bluetooth](<https://devfeed.tech/tags/bluetooth.md>), [bridges](<https://devfeed.tech/tags/bridges.md>), [cancellations](<https://devfeed.tech/tags/cancellations.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [coroutinescope](<https://devfeed.tech/tags/coroutinescope.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>)

### AI overview

Kotlin coroutine cancellation is cooperative, so failures occur when code catches CancellationException as an ordinary error, callback bridges fail to cancel underlying requests, blocking calls ignore cancellation, or work runs in scopes without a clear owner. The excerpt links these gaps to misleading error logs and empty results, hanging or stale workflows, wasted IO capacity, Bluetooth work surviving disconnects, and saves lost during logout. It recommends rethrowing cancellation, using cancellable bridges that cancel their requests, preferring suspend APIs (or runInterruptible for interruptible JVM calls), assigning scopes to lifecycle owners, and sequencing critical saves and logout in one coroutine. It also distinguishes timeout-as-error from expected timeout, and notes that a Mutex serializes sends without guaranteeing callback arrival order. The review questions suggest where runtime tracing may help; static review cannot prove that a pattern caused an incident.

### Source excerpt

Lessons from a production Android codebase Cancellation in Kotlin Coroutines looks simple: cancel the Job, and the coroutine stops. In production, it is rarely that clean. Cancellation is cooperative. Every suspend function, exception handler, callback bridge and child scope must carry the signal. Break one boundary, and work may continue after its owner is gone. We saw the result in production: false error logs, empty results, stale Bluetooth work and a final save lost during logout. Nothing crashed. The app simply continued with the wrong state. Cancellation is cooperative Kotlin uses CancellationException to stop a coroutine. Functions such as delay and await check the Job and throw when it is cancelled. val job = scope.launch { delay(5_000) updateState() } job.cancel() Here, delay observes cancellation, so updateState is not called. Regular Kotlin code does not check automatically. It keeps running until the next cancellation point. When cancellation becomes a failure return try { repository.fetchNotifications() } catch (error: Exception) { logger.error("Failed to load notifications", error) emptyList() } If the user leaves the screen, viewModelScope is cancelled and fetchNotifications throws CancellationException. The broad catch records a normal lifecycle event as a failure. It also returns emptyList, so the caller cannot distinguish cancellation from a successful query with no data. runCatching has the same problem because it also catches CancellationException. Rethrow cancellation before handling other failures. catch (error: CancellationException) { throw error } catch (error: Exception) { logger.error("Failed to load notifications", error) emptyList() } In production, normal navigation becomes error telemetry. Empty values can appear as missing documents, notifications or time cards. Support sees missing data while the app reports a completed request. Callback bridges can outlive the caller suspend fun loadMessages() = suspendCoroutine { continuation -> ch

## Stop Means "No More Sends," Not "Undo": Understanding Multi-Agent Cancellation

DevFeed: [Stop Means "No More Sends," Not "Undo": Understanding Multi-Agent Cancellation](<https://devfeed.tech/articles/stop-means-no-more-sends-not-undo-understanding-multi-agent-cancellation-85093.md>)

Original publisher: [Read original article](<https://hackernoon.com/stop-means-no-more-sends-not-undo-understanding-multi-agent-cancellation?source=rss>)

Author: Zack Chew

Published: 2026-10-11T19:48:48Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [agent orchestration](<https://devfeed.tech/topics/agent-orchestration.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai-agent-development](<https://devfeed.tech/tags/ai-agent-development.md>), [ai-agent-orchestration](<https://devfeed.tech/tags/ai-agent-orchestration.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [asynchronous-programming](<https://devfeed.tech/tags/asynchronous-programming.md>), [button](<https://devfeed.tech/tags/button.md>), [cancellation](<https://devfeed.tech/tags/cancellation.md>), [data-persistence](<https://devfeed.tech/tags/data-persistence.md>), [effects](<https://devfeed.tech/tags/effects.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [javascript-abortcontroller](<https://devfeed.tech/tags/javascript-abortcontroller.md>), [multi-agent](<https://devfeed.tech/tags/multi-agent.md>), [multi-agent-systems](<https://devfeed.tech/tags/multi-agent-systems.md>), [product](<https://devfeed.tech/tags/product.md>), [streaming-chat-interfaces](<https://devfeed.tech/tags/streaming-chat-interfaces.md>)

### AI overview

The article traces how cancellation works in a multi-agent chat runner. It explains that pressing Stop can prevent future sends without undoing a user message already saved or a reply from an in-flight send that succeeds. It also distinguishes a line shown in the interface from one confirmed as saved, and recommends testing these boundaries with controlled promises.

### Source excerpt

I examined a multi-agent chat runner to understand why pressing Stop can leave replies visible, messages saved, and later agents uncalled.

## Working in Kotlin: Waiting Around with Coroutines

DevFeed: [Working in Kotlin: Waiting Around with Coroutines](<https://devfeed.tech/articles/working-in-kotlin-waiting-around-with-coroutines-64814.md>)

Original publisher: [Read original article](<https://spin.atomicobject.com/kotlin-waiting-coroutines/>)

Author: Matt Soto

Published: 2026-10-05T12:00:12Z

Content type: tutorial

Language: en

Sources: [Atomic Object](<https://devfeed.tech/sources/atomic-object.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>)

Tags: [await](<https://devfeed.tech/tags/await.md>), [cancellation](<https://devfeed.tech/tags/cancellation.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [delay](<https://devfeed.tech/tags/delay.md>), [dispatcher](<https://devfeed.tech/tags/dispatcher.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [platforms-languages](<https://devfeed.tech/tags/platforms-languages.md>)

### AI overview

This Kotlin tutorial explains how coroutines suspend without blocking threads, how to overlap independent operations with async and await, and how coroutineScope provides structured concurrency and cancellation. It also clarifies that suspend does not make blocking code nonblocking and discusses Dispatchers.IO for blocking I/O.

### Source excerpt

In part one of this series, I discussed the pros and cons of using Kotlin. In part two, let's talk about waiting. Your application probably does a lot of it. Waiting for a database, waiting for an API, waiting for a second API because apparently the first one didn't have enough information. Our computers are [...] The post Working in Kotlin: Waiting Around with Coroutines appeared first on Atomic Spin.

## Announcing @neon/effect

DevFeed: [Announcing @neon/effect](<https://devfeed.tech/articles/announcing-neon-effect-63392.md>)

Original publisher: [Read original article](<https://neon.com/blog/announcing-neon-effect>)

Author: Andre Landgraf

Published: 2026-10-01T12:00:00Z

Content type: release

Language: en

Sources: [Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [SDK](<https://devfeed.tech/topics/sdk.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [hosting](<https://devfeed.tech/topics/hosting.md>)

Tags: [cancellation](<https://devfeed.tech/tags/cancellation.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [product](<https://devfeed.tech/tags/product.md>), [retries](<https://devfeed.tech/tags/retries.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

### AI overview

Neon introduces `@neon/effect`, an Effect 4 integration for its TypeScript SDK. The package exposes SDK calls as Effects and paginated results as Streams, with typed errors and support for retries, timeouts, and interruption. It is designed to help coordinate asynchronous Neon provisioning workflows in applications and agent platforms.

### Source excerpt

@neon/effect brings the Neon SDK to Effect. Provision projects and branches, handle tagged errors and compose infrastructure workflows with retries, cancellation and timeouts.

## JDK 27: The new features of Java 27

DevFeed: [JDK 27: The new features of Java 27](<https://devfeed.tech/articles/jdk-27-the-new-features-of-java-27-47829.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4202901/jdk-27-the-new-features-of-java-27.html>)

Author: Paul Krill

Published: 2026-09-15T12:00:00Z

Content type: release

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Security](<https://devfeed.tech/topics/security.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent-programming](<https://devfeed.tech/tags/concurrent-programming.md>), [java](<https://devfeed.tech/tags/java.md>), [java-27](<https://devfeed.tech/tags/java-27.md>), [java-programming-languages-software-development](<https://devfeed.tech/tags/java-programming-languages-software-development.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [jdk-flight-recorder](<https://devfeed.tech/tags/jdk-flight-recorder.md>), [new-features](<https://devfeed.tech/tags/new-features.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [security](<https://devfeed.tech/tags/security.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

An overview of the nine features in the generally available Java Development Kit 27, including G1 as the default garbage collector, post-quantum hybrid key exchange for TLS 1.3, lazy constants, structured concurrency, pattern matching updates, compact object headers, JDK Flight Recorder data redaction, a vector API, and PEM encodings.

### Source excerpt

Java Development Kit 27, an Oracle-driven, planned update to standard Java, is now generally available. This latest update to standard Java has features ranging from making the Garbage-First (G1) garbage collector the default collector and adding structured concurrency to simplify concurrent programming. Overall, there are nine features listed on what is described as a reference implementation of JDK 27. The first five features include making G1 the default garbage collector, post-quantum hybrid key exchange for TLS 1.3, lazy constants, structured concurrency, and primitive types in patterns, instanceof, and switch. The next four include compact object headers, JFR (JDK Flight Recorder) in-process data redaction, a vector API, and PEM (Privacy-Enhanced Mail) encodings for cryptographic objects. JDK 27 can be downloaded at jdk.java.net. With JDK 27, G1 becomes the default garbage collector in all environments, rather than just in server environments. Goals are to ensure that the HotSpot JVM will always select G1 and that performance including throughput, latency, memory footprint, and startup time does not degrade significantly. With post-quantum hybrid key exchange for TLS 1.3, the goal is to enhance the security of Java applications that require secure network communication by implementing hybrid key exchange algorithms. Such algorithms defend against future quantum computing attacks by combining a quantum-resistant algorithm with a traditional algorithm. Lazy constants introduces an API for objects that hold unmodifiable data. Lazy constants are treated as true constants by the JVM, enabling the same performance optimizations that are enabled by declaring a field final. Compared to final fields, however, lazy constants offer greater flexibility in the timing of their initialization. This feature is in a third preview. The goal of primitive types in patterns, instanceof, and switch is to enhance pattern matching by allowing primitive types in all pattern contexts,

## Structured Concurrency

DevFeed: [Structured Concurrency](<https://devfeed.tech/articles/structured-concurrency-39377.md>)

Original publisher: [Read original article](<https://kt.academy/article/structured_concurrency_patricio>)

Published: 2026-04-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>)

Tags: [coroutines](<https://devfeed.tech/tags/coroutines.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [guide](<https://devfeed.tech/tags/guide.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [memory-leaks](<https://devfeed.tech/tags/memory-leaks.md>), [processes](<https://devfeed.tech/tags/processes.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

### AI overview

A Kotlin-focused guide to structured concurrency explains how coroutine hierarchies establish ownership and completion guarantees. It covers cancellation of child coroutines, avoiding unnecessary work and resource leaks, awaiting completion, and handling errors.

### Source excerpt

The only guide to structured concurrency you'll ever need.

## Clojure Deref (Jan 7, 2026)

DevFeed: [Clojure Deref (Jan 7, 2026)](<https://devfeed.tech/articles/clojure-deref-jan-7-2026-49771.md>)

Original publisher: [Read original article](<https://clojure.org/news/2026/01/07/deref>)

Published: 2026-01-07T00:00:00Z

Content type: article

Language: en

Sources: [Clojure News](<https://devfeed.tech/sources/clojure-news.md>)

Topics: [Clojure](<https://devfeed.tech/topics/clojure.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [ClojureScript](<https://devfeed.tech/topics/clojurescript.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [coding](<https://devfeed.tech/tags/coding.md>), [development](<https://devfeed.tech/tags/development.md>), [programming](<https://devfeed.tech/tags/programming.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

A weekly Clojure ecosystem roundup covering upcoming events, podcasts, blogs, articles, news, libraries, tools, project updates, and releases. Featured items include ClojureScript frontend development, structured concurrency and cancellation libraries, synchronization primitives, browser tooling, debugging dashboards, and Clojure MCP.

### Source excerpt

Welcome to the Clojure Deref! This is a weekly link/news roundup for the Clojure ecosystem (feed: RSS). Upcoming Events Clojure real-world-data 40: Jan 9 Scicloj AI Meetup: Agent-o-rama: Jan 17 Clojure Jam 2026: Apr 18-19 & 25-26. Online & free! CFP is open until Jan 31st. Babashka Conf: May 8. Amsterdam, NL. Free registration, but tickets are limited! Dutch Clojure Days 2026: May 9th. Amsterdam, NL. Join the waitlist, or the CFP is open until Jan 15th. Podcasts, videos, and media defn episode 2aba8aeedf7d Polylith - @defn podcast rswan 1.1.0, and other Clojure updates - Clojure Diary map operation functions in Clojure - Clojure Diary A simple decorator in Clojure - Clojure Diary Clojure/Conj 2025 Clojurists Together - ClojureTV ClojureDart: Still Alive, Kicking Harder - Grand & Dupuch - ClojureTV A journey distributing millions of residential energy consumption simulations with Clojure - Mendoza - ClojureTV Brain Data in Clojure 2: BrainFloj in Premise and Practice - Lyons - ClojureTV Blogs, articles, and news Welcome to the jank alpha! - The jank Programming Language - Jeaye Wilkerson December Q3 2025 Project Updates - Kathy Davis OSS updates November and December 2025 - Michiel Borkent Frontend Development with Clojurescript, Replicant, Nexus and Datascript - Kari Marttila How can I use the re-frame alpha? - Kimo Knowles Something Like MDX but with Clojure and Org-Mode for My Personal Blog: Part I - Akira Calva Multi-REPL - Kari Marttila Live coding a full game level using only the REPL - Ertuğrul Çetin Libraries and Tools Debut release quiescent - A Clojure library for composable async tasks with automatic parallelization, structured concurrency, and parent-child and chain cancellation machine-latch - Low-level synchronization primitive with state machine semantics scoped - ScopedValue in Clojure, with fallback to ThreadLocal pathling - Utilities for scanning and updating data structures clj-physics - Multi-domain physics modeling in Clojure: frames, environment

## Announcing Apollo iOS 2.0

DevFeed: [Announcing Apollo iOS 2.0](<https://devfeed.tech/articles/announcing-apollo-ios-2-0-23133.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/announcing-apollo-ios-2-0>)

Author: Anthony Miller

Published: 2025-10-07T07:00:46Z

Content type: release

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>)

Tags: [announcement](<https://devfeed.tech/tags/announcement.md>), [apollo](<https://devfeed.tech/tags/apollo.md>), [apple](<https://devfeed.tech/tags/apple.md>), [cancellation](<https://devfeed.tech/tags/cancellation.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [http](<https://devfeed.tech/tags/http.md>), [ios](<https://devfeed.tech/tags/ios.md>), [migration](<https://devfeed.tech/tags/migration.md>), [performance](<https://devfeed.tech/tags/performance.md>), [platforms](<https://devfeed.tech/tags/platforms.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

Apollo iOS 2.0 makes the client concurrency-first: GraphQL requests compose with Swift tasks and cancellation, while the compiler can check data safety across concurrency boundaries. The release streamlines separation between transport, cache, and request layers, and models such as requests, responses, interceptors, and cache policies conform to Sendable. Upgrading raises minimum deployment targets to iOS 15, macOS 12, tvOS 15, watchOS 8, and visionOS 1; CocoaPods is retired in favor of Swift Package Manager and prebuilt XCFrameworks. Subscriptions currently work over HTTP only. Apps that depend on WebSocket subscriptions should wait for the planned implementation in a future minor release. The excerpt begins a migration guide focused on custom interceptors, network transports, and cache implementations, but does not include its full steps.

### Source excerpt

Apollo iOS 2.0 is here, and it's the biggest reimagining of our Swift client yet. Built from the ground up for Swift's modern concurrency model, this release delivers snappier performance, stronger type guarantees, and a cleaner developer experience for teams shipping GraphQL-powered apps across Apple platforms. Improved APIs Swift's structured concurrency and the / syntax weren't just sugar, they introduced an entirely new mental model for reasoning about work, isolation, and cancellation.

## Fingo's Migration from TypeScript to Go for Faster Tests and Deployment

DevFeed: [Fingo's Migration from TypeScript to Go for Faster Tests and Deployment](<https://devfeed.tech/articles/fingo-s-leap-into-lightning-fast-fintech-with-go-81607.md>)

Original publisher: [Read original article](<https://www.daytona.io/dotfiles/fingo-s-leap-into-lightning-fast-fintech-with-go>)

Author: Jaafar Mohamed Community Engineer

Published: 2024-09-17T00:00:00Z

Content type: article

Language: en

Sources: [Dotfiles Insider](<https://devfeed.tech/sources/dotfiles-insider.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>)

Tags: [browser-based-ide](<https://devfeed.tech/tags/browser-based-ide.md>), [browser-ide](<https://devfeed.tech/tags/browser-ide.md>), [cloud-coding](<https://devfeed.tech/tags/cloud-coding.md>), [cloud-dev-environment](<https://devfeed.tech/tags/cloud-dev-environment.md>), [cloud-development-environment](<https://devfeed.tech/tags/cloud-development-environment.md>), [cloud-editor](<https://devfeed.tech/tags/cloud-editor.md>), [cloud-ide](<https://devfeed.tech/tags/cloud-ide.md>), [cloud-programming](<https://devfeed.tech/tags/cloud-programming.md>), [code-in-cloud](<https://devfeed.tech/tags/code-in-cloud.md>), [code-on-web](<https://devfeed.tech/tags/code-on-web.md>), [coding-environment](<https://devfeed.tech/tags/coding-environment.md>), [development](<https://devfeed.tech/tags/development.md>), [fintech](<https://devfeed.tech/tags/fintech.md>), [go](<https://devfeed.tech/tags/go.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [ide-editor-online](<https://devfeed.tech/tags/ide-editor-online.md>), [ide-in-browser](<https://devfeed.tech/tags/ide-in-browser.md>), [ide-online](<https://devfeed.tech/tags/ide-online.md>), [online-code-editor](<https://devfeed.tech/tags/online-code-editor.md>), [online-ide](<https://devfeed.tech/tags/online-ide.md>), [online-programming](<https://devfeed.tech/tags/online-programming.md>), [online-web-dev-ide](<https://devfeed.tech/tags/online-web-dev-ide.md>), [online-web-development-ide](<https://devfeed.tech/tags/online-web-development-ide.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [sde](<https://devfeed.tech/tags/sde.md>), [standardised-development-environment](<https://devfeed.tech/tags/standardised-development-environment.md>), [stories-insights](<https://devfeed.tech/tags/stories-insights.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [web-based-coding](<https://devfeed.tech/tags/web-based-coding.md>), [web-ide](<https://devfeed.tech/tags/web-ide.md>)

### AI overview

Fingo describes moving its digital banking platform from TypeScript to Go to improve performance and reliability. The article says Go's built-in testing framework reduced full-suite test times from 8-10 minutes to 1-2 minutes, while smaller binaries and Go concurrency support the company's deployment and transaction-processing needs. It also notes a learning curve and a smaller ecosystem than JavaScript and TypeScript.

### Source excerpt

Fingo enhanced efficiency and reliability by migrating from TypeScript to Go, transforming its development process and customer service.

## Job and children awaiting in Kotlin Coroutines

DevFeed: [Job and children awaiting in Kotlin Coroutines](<https://devfeed.tech/articles/job-and-children-awaiting-in-kotlin-coroutines-39237.md>)

Original publisher: [Read original article](<https://kt.academy/article/cc-job>)

Published: 2024-07-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Job](<https://devfeed.tech/topics/job.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [cancellation](<https://devfeed.tech/topics/cancellation.md>)

Tags: [cancellation](<https://devfeed.tech/tags/cancellation.md>), [job](<https://devfeed.tech/tags/job.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

### AI overview

This tutorial explains the Kotlin Coroutines Job context. It describes how each coroutine has its own Job, how parent-child Job relationships support structured concurrency, and how Jobs enable cancellation, completion waiting, and exception handling within a coroutine scope.

### Source excerpt

What Job is and how it is the most important context responsible for structured concurrency.

## Ep. 5: Efficient Concurrency in Go: Managing GoRoutines and Load Shedding

DevFeed: [Ep. 5: Efficient Concurrency in Go: Managing GoRoutines and Load Shedding](<https://devfeed.tech/articles/ep-5-efficient-concurrency-in-go-managing-goroutines-and-load-shedding-22242.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2024/06/efficient-concurrency-in-go-managing-goroutines-and-load-shedding-ep-5.html>)

Published: 2024-06-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [go](<https://devfeed.tech/tags/go.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [http](<https://devfeed.tech/tags/http.md>), [kubernetes-clusters](<https://devfeed.tech/tags/kubernetes-clusters.md>), [managing-goroutines](<https://devfeed.tech/tags/managing-goroutines.md>), [networking](<https://devfeed.tech/tags/networking.md>), [orphan-goroutines](<https://devfeed.tech/tags/orphan-goroutines.md>), [shutdown](<https://devfeed.tech/tags/shutdown.md>)

### AI overview

The excerpt emphasizes coordinating GoRoutines through parent-child ownership: a parent should wait for its children to finish before shutting down, helping avoid orphaned work and protect data consistency during critical operations such as database transactions. For HTTP server traffic, it describes load shedding and Go's HTTP package as a way to manage a controlled shutdown, with signals handled via channels so GoRoutines can terminate orderly. It recommends APIs that support clean shutdown and handoff of responsibilities; implementation details are limited in the supplied excerpt.

### Source excerpt

Introduction: In this installment, Bill delves into the concept of load shedding in Go, explaining its importance in managing GoRoutines and ensuring clean shutdowns. How to manage GoRoutines using a parent-child relationship model to prevent orphan GoRoutines. The role of load shedding in maintaining clean and orderly shutdowns, particularly using the HTTP package in Go. Strategies for implementing GoRoutines in Go to handle concurrent tasks efficiently without risking data corruption during shutdowns.

## Key advantages of Kotlin Coroutines

DevFeed: [Key advantages of Kotlin Coroutines](<https://devfeed.tech/articles/key-advantages-of-kotlin-coroutines-39257.md>)

Original publisher: [Read original article](<https://kt.academy/article/coroutines-advantages>)

Published: 2024-06-10T00:00:00Z

Content type: article

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [cancellation](<https://devfeed.tech/topics/cancellation.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Ktor](<https://devfeed.tech/topics/ktor.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Android](<https://devfeed.tech/topics/android.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>)

Tags: [cancellation](<https://devfeed.tech/tags/cancellation.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [http](<https://devfeed.tech/tags/http.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [ktor](<https://devfeed.tech/tags/ktor.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [testing](<https://devfeed.tech/tags/testing.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

### AI overview

This article explains the main advantages of Kotlin Coroutines: simpler imperative-style asynchronous code, structured concurrency, lighter execution than threads, cancellation, synchronization, and precise virtual-time testing. It discusses applications in Android and backend development, including Ktor.

### Source excerpt

Where Kotlin Coroutines shine and why you should use them.

## Coroutines on Android

DevFeed: [Coroutines on Android](<https://devfeed.tech/articles/coroutines-on-android-23898.md>)

Original publisher: [Read original article](<https://medium.com/smg-real-estate/coroutines-on-android-d3e3413e6aa7?source=rss----2186e5b9bd8f---4>)

Author: Stevan Milovanovic

Published: 2022-05-20T12:36:23Z

Content type: article

Language: en

Sources: [Homegate Engineering Blog - Medium](<https://devfeed.tech/sources/homegate-engineering-blog-medium.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-apps](<https://devfeed.tech/tags/android-apps.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [background](<https://devfeed.tech/tags/background.md>), [context](<https://devfeed.tech/tags/context.md>), [coroutine-testing](<https://devfeed.tech/tags/coroutine-testing.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [dispatcher](<https://devfeed.tech/tags/dispatcher.md>), [job](<https://devfeed.tech/tags/job.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [launch](<https://devfeed.tech/tags/launch.md>), [networking](<https://devfeed.tech/tags/networking.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [processing](<https://devfeed.tech/tags/processing.md>), [scope](<https://devfeed.tech/tags/scope.md>), [thread](<https://devfeed.tech/tags/thread.md>), [thread-pools](<https://devfeed.tech/tags/thread-pools.md>)

### AI overview

The excerpt presents coroutines as a lightweight alternative to creating and stopping resource-intensive threads, and says they simplify asynchronous code by making parallel work resemble sequential code. It explains that scopes provide context and propagate cancellation to coroutines launched with builders such as `launch` and `async`; suspending functions allow coroutine work to pause; and a `Job` provides lifecycle control through cancellation and joining, with parent-child cancellation relationships. A dispatcher selects the thread or thread pool. The introduction says the article will demonstrate networking and background processing, but those implementation details are not included in the supplied excerpt.

### Source excerpt

Coroutines on Android In this article I'll try to explain why coroutines are useful and why would you want to use them in your project. After we go through the most important concepts of coroutines, I'll show you how I used coroutines to implement networking and background processing in the example project. First of all, you might ask yourself, why we want to use coroutines over threads? Main problem with threads is that they are resource intensive, meaning it takes a lot of resources to start a thread, stop a thread. Meanwhile, coroutines are lightweight threads, since they use thread pools. Another benefit of coroutines is that they greatly simplify asynchronous code. Callbacks and synchronisation are very easy to use. In fact, they make parallel programming look very much like sequential programming. Coroutines can be paused and resumed at any time, on a number of threads. And lastly, since coroutines are based on a few fairly easy to grasp concepts, their syntax is simple and easy to use. Here are the main concepts we need to explain about coroutines: Scope Coroutine scope, as its name says, defines a scope for new coroutines. Every coroutine builder (like launch and async) is an extension on CoroutineScope and inherits its coroutineContext to automatically propagate all its elements and cancellation. Context Coroutine context represents the context of its scope. Context is encapsulated by the scope and used for implementation of coroutine builders that are extensions on the scope. Scope provides a context in which the coroutine runs (state of the coroutine which provides variables, functionality of the coroutine etc.). Suspending functions Suspending functions are functions that can be run in a coroutine. They make callbacks seamless. They can be run in a coroutine (can be suspended) and that is why they can provide functionalities which have to be run in parallel. Job Job is a handle on that coroutine (on the piece of code which runs in the background). A laun

## Constructing a coroutine scope

DevFeed: [Constructing a coroutine scope](<https://devfeed.tech/articles/constructing-a-coroutine-scope-39234.md>)

Original publisher: [Read original article](<https://kt.academy/article/cc-constructing-scope>)

Published: 2021-10-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [coroutine](<https://devfeed.tech/tags/coroutine.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [logging](<https://devfeed.tech/tags/logging.md>), [scope](<https://devfeed.tech/tags/scope.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

### AI overview

A tutorial on constructing Kotlin coroutine scopes for Android and backend code. It recommends holding a scope in a property, explains when a custom scope is needed, and discusses dispatchers, supervision, and exception handling.

### Source excerpt

How we generally define coroutine scope on Android and on the backend.

## Structured Concurrency Anniversary

DevFeed: [Structured Concurrency Anniversary](<https://devfeed.tech/articles/structured-concurrency-anniversary-26028.md>)

Original publisher: [Read original article](<https://elizarov.medium.com/structured-concurrency-anniversary-f2cc748b2401?source=rss-4762e889f8fc------2>)

Author: Roman Elizarov

Published: 2019-09-28T15:02:02Z

Content type: article

Language: en

Sources: [Roman Elizarov](<https://devfeed.tech/sources/stories-by-roman-elizarov-on-medium.md>)

Topics: [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [coroutines-flow](<https://devfeed.tech/topics/coroutines-flow.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Reactive Streams](<https://devfeed.tech/topics/reactive-streams.md>)

Tags: [1-3](<https://devfeed.tech/tags/1-3.md>), [android](<https://devfeed.tech/tags/android.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [programming](<https://devfeed.tech/tags/programming.md>), [reactive-streams](<https://devfeed.tech/tags/reactive-streams.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

Kotlin's Structured Concurrency was designed to keep coroutines and their exceptions within a defined lifetime. `coroutineScope { ... }` bounds concurrent work to the current call, while Android's `lifecycleScope` and `viewModelScope` connect coroutines to lifecycle-bound objects. For Flow, `launchIn(scope)` runs collection in a chosen scope so subscriptions need not outlive closing widgets. A legacy caveat is that coroutine builders combine the scope context with an explicit context: passing another `Job` can have unintuitive behavior, so the author advises against it. Flow's `flowOn` avoids this issue by disallowing job replacement. The text also notes that restricting a request to both its own lifetime and a client's scope is currently cumbersome.

### Source excerpt

Photo by Annie Spratt on Unsplash A little over a year ago I announced big conceptual shift in the design of Kotlin Coroutines called Structured Concurrency. From that moment on, it took our team about a month to make the first stable 1.0.0 release of kotlinx.coroutines library. After a year of further work, kotlinx.coroutines had added stable support for cold flows that integrate nicely with reactive streams. The library had reached version 1.3.2 by now. It is good time to look back and see how it all worked out -- what was great, what could be improved. Structured Concurrency accomplished more than we hoped for. Originally, the design of structured concurrency was based on the woes experienced by backend developers trying to implement all sorts of asynchronous and concurrent logic. It was focused on making sure that you cannot ever lose a running coroutine or an exception. The key building block we added back then is coroutineScope { ... } function, which encapsulates concurrent operations and limits their scope to the scope of the current call. There was not much else to it, so our recommendation to UI developers was to implement CoroutineScope interface in various "closeable" entities of their applications. We envisioned a simple picture with a simple scope hierarchy. It turned out to be more elaborate in practice. Structured Concurrency was rapidly adopted by Android, which has quite complicated life-cycles. Android libraries added extensions like lifecycleScope and viewModelScope, enabling concise and safe integration of coroutines with those concepts. It became apparent that code looks clearer when an object encapsulating the scope is separate from the rest of code. Introductory Android Codelab on Coroutines recommends defining coroutine scope like this: private val scope = CoroutineScope(...) Nowadays, this style increasingly looks more appealing, so it's time to adjust our documentation to reflect it. At the same time, structured concurrency laid a solid fou

## Goroutine Leaks - The Forgotten Sender

DevFeed: [Goroutine Leaks - The Forgotten Sender](<https://devfeed.tech/articles/goroutine-leaks-the-forgotten-sender-22139.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2018/11/goroutine-leaks-the-forgotten-sender.html>)

Published: 2018-11-12T00:00:00Z

Content type: article

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Structured concurrency](<https://devfeed.tech/topics/structured-concurrency.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent-programming](<https://devfeed.tech/tags/concurrent-programming.md>), [go](<https://devfeed.tech/tags/go.md>), [go-concurrency](<https://devfeed.tech/tags/go-concurrency.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [goroutine](<https://devfeed.tech/tags/goroutine.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [leaks](<https://devfeed.tech/tags/leaks.md>), [programming](<https://devfeed.tech/tags/programming.md>)

### AI overview

A goroutine leaks when it is expected to stop but remains blocked indefinitely, keeping its allocated memory from being released for the lifetime of the application. The excerpt's example creates a goroutine waiting to receive from a channel, then returns without any remaining sender, so the goroutine never reaches its next call. It recommends knowing how every goroutine will stop. The excerpt notes that production leaks can be harder to identify than this simple case; it does not include the article's later diagnostic or prevention methods.

### Source excerpt

Introduction Concurrent programming allows developers to solve problems using more than one path of execution and is often used in an attempt to improve performance. Concurrency doesn't mean these multiple paths are executing in parallel; it means these paths are executing out-of-order instead of sequentially. Historically, this type of programming is facilitated using libraries that are either provided by a standard library or from 3rd party developers. In Go, concurrency features like Goroutines and channels are built into the language and runtime to reduce or eliminate the need for libraries. This has created the illusion that writing concurrent programs in Go is easy. You must be cautious when deciding to use concurrency as it comes with some unique side effects or traps if not used correctly. These traps can create complexity and nasty bugs if you're not careful.