# async/await

A JavaScript syntax mechanism that simplifies consuming promise-based asynchronous APIs.

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

## JavaScript Promises Explained: then, async/await and Promise.all

DevFeed: [JavaScript Promises Explained: then, async/await and Promise.all](<https://devfeed.tech/articles/javascript-promises-explained-then-async-await-and-promise-all-148081.md>)

Original publisher: [Read original article](<https://markodenic.com/javascript-promises/>)

Author: Marko

Published: 2026-11-22T17:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [await](<https://devfeed.tech/topics/await.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [Exception handling](<https://devfeed.tech/topics/exception-handling.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [chaining](<https://devfeed.tech/tags/chaining.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [examples](<https://devfeed.tech/tags/examples.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [mistakes](<https://devfeed.tech/tags/mistakes.md>), [promises](<https://devfeed.tech/tags/promises.md>), [race](<https://devfeed.tech/tags/race.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A JavaScript promise represents a future value and settles once, either fulfilled or rejected. Use `.then()`, `.catch()` and `.finally()` to handle outcomes; returned values and promises carry through chains, while `async`/`await` offers stepwise syntax with `try`/`catch`. `fetch()` rejects on network failures, but HTTP error responses such as 404 still fulfill, so check `response.ok`. For independent work, `Promise.all` preserves input order and rejects as soon as any task fails; `Promise.allSettled` waits for every result; `Promise.race` follows the first settlement, while `Promise.any` waits for the first fulfillment. For fetch timeouts, the excerpt recommends `AbortSignal.timeout`, which also cancels the request. Common bugs include omitting `return` in a chain, expecting `forEach` to await callbacks, and leaving rejections unhandled. A promise itself cannot be cancelled; cancellation must target the underlying work.

### Source excerpt

JavaScript promises explained with examples: creating one, then and catch, async/await, error handling, Promise.all, allSettled, race and any, and common mistakes.

## CodeSOD: Asynchronous Directories

DevFeed: [CodeSOD: Asynchronous Directories](<https://devfeed.tech/articles/codesod-asynchronous-directories-28505.md>)

Original publisher: [Read original article](<https://thedailywtf.com/articles/asynchronous-directories>)

Author: Remy Porter

Published: 2026-09-09T06:30:00Z

Content type: article

Language: en

Sources: [The Daily WTF](<https://devfeed.tech/sources/the-daily-wtf.md>)

Topics: [Vala](<https://devfeed.tech/topics/vala.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Library](<https://devfeed.tech/topics/library.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [await](<https://devfeed.tech/tags/await.md>), [codesod](<https://devfeed.tech/tags/codesod.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [writing-code](<https://devfeed.tech/tags/writing-code.md>)

### AI overview

This article examines implementing an asynchronous version of Vala's directory-creation method when the core library provides only a synchronous version. The proposed function walks up the directory tree, then creates missing directories in reverse order, using exceptions for control flow.

### Source excerpt

Eri has a mix of a "true confession" and a "wait, really?" today. The programming language Vala bills itself as a C# like language that compiles into something pretty close to C performance, designed specifically for writing code against Gnome and its associated libraries. One of the C#-isms in brings in is async/await type semantics. You can yield someAsyncFunction(), which returns control to the caller, allowing it to proceed until the yielded function returns an actual value. Because it has asynchronous functions, many library functions for handling I/O are already async. So you can make_directory_async, which yields control so you can keep executing while waiting for the filesystem to make your directory. There are also synchronous versions of those methods. And then there's create_directory_with_parents, which will create a chain of directories for you. That's the synchronous version, and Vala's core library has decided not to provide an asynchronous version of it, which is my "wait, really?" I suspect it's really about the race conditions involved and the risks of things going wrong while doing it asynchronously; all solvable problems, but tricky ones to solve. But it's the problem Eri had, and this is their solution: /// Note: does not throw if target already exists async void create_directory_with_parents_async(File file, Cancellable? cancellable = null) throws Error { var to_create = new File[0]; var? current_target = file; while(current_target != null) { try { yield current_target.make_directory_async(Priority.DEFAULT, cancellable); } catch(IOError.NOT_FOUND e) { to_create += current_target; current_target = current_target.get_parent(); continue; } catch(IOError.EXISTS e) { break; } break; } for (int i = to_create.length - 1; i >= 0; --i) { try { yield to_create[i].make_directory_async(Priority.DEFAULT, cancellable); } catch(IOError.EXISTS e) { // Created by another process } } } If I'm reading this correctly, we start by trying to create the full path to

## Defer in Swift explained with Code Examples

DevFeed: [Defer in Swift explained with Code Examples](<https://devfeed.tech/articles/defer-in-swift-explained-with-code-examples-11485.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swift/defer-usage-swift/>)

Author: Antoine van der Lee

Published: 2026-07-06T12:51:59Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Code](<https://devfeed.tech/topics/code.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [defer](<https://devfeed.tech/tags/defer.md>), [examples](<https://devfeed.tech/tags/examples.md>), [leaving](<https://devfeed.tech/tags/leaving.md>), [scope](<https://devfeed.tech/tags/scope.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

This tutorial explains Swift's defer statement, which runs code when control leaves its scope. It covers reverse execution order for multiple defer statements, using defer for resource cleanup, and Swift 6.4 support for awaiting asynchronous cleanup in defer bodies.

### Source excerpt

Although the defer keyword was already introduced in Swift 2.0, it's still quite uncommon to use it in projects. Its usage can be hard to understand, but using it can improve your code a lot in some places. The most common use case seen around is opening and closing a context within a scope. Starting ... -> The post Defer in Swift explained with Code Examples appeared first on SwiftLee.

## Bun v1.3.7

DevFeed: [Bun v1.3.7](<https://devfeed.tech/articles/bun-v1-3-7-49459.md>)

Original publisher: [Read original article](<https://bun.com/blog/bun-v1.3.7>)

Author: Jarred Sumner

Published: 2026-01-27T06:30:58Z

Content type: release

Language: en

Sources: [Bun](<https://devfeed.tech/sources/bun-com.md>)

Topics: [Bun](<https://devfeed.tech/topics/bun.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bug-fixes](<https://devfeed.tech/tags/bug-fixes.md>), [bun](<https://devfeed.tech/tags/bun.md>), [faster](<https://devfeed.tech/tags/faster.md>), [http](<https://devfeed.tech/tags/http.md>), [javascript](<https://devfeed.tech/tags/javascript.md>)

### AI overview

Bun v1.3.7 fixes 91 issues and improves performance across array operations, async/await, string padding, and JavaScriptCore. The release adds Bun.JSON5, Bun.JSONL, Bun.wrapAnsi(), profiling options, a node:inspector Profiler API, and replMode for Bun.Transpiler. It also improves HTTP header compatibility and fixes HTTP/2 issues involving AWS ALB, gRPC, and Fauna.

### Source excerpt

Fixes 91 issues (addressing 243 👍). 50% faster `Buffer.from(array)`, 35% faster async/await, 3x faster `array.flat()`, 90% faster `padStart`/`padEnd` via JSC upgrade. New: `Bun.JSON5`, `Bun.JSONL`, `Bun.wrapAnsi()` (33-88x faster than wrap-ansi npm), `--heap-prof-md`, `--cpu-prof-md`, `node:inspector` Profiler API, `replMode` for `Bun.Transpiler`. Fetch now preserves header casing. HTTP/2 fixes for AWS ALB/gRPC/Fauna.

## Bun v1.3.6

DevFeed: [Bun v1.3.6](<https://devfeed.tech/articles/bun-v1-3-6-49458.md>)

Original publisher: [Read original article](<https://bun.com/blog/bun-v1.3.6>)

Author: Jarred Sumner

Published: 2026-01-13T01:12:07Z

Content type: release

Language: en

Sources: [Bun](<https://devfeed.tech/sources/bun-com.md>)

Topics: [Bun](<https://devfeed.tech/topics/bun.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [JSON](<https://devfeed.tech/topics/json.md>), [async](<https://devfeed.tech/topics/async.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [hashing](<https://devfeed.tech/topics/hashing.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bun](<https://devfeed.tech/tags/bun.md>), [compression](<https://devfeed.tech/tags/compression.md>), [hash](<https://devfeed.tech/tags/hash.md>), [http](<https://devfeed.tech/tags/http.md>), [json](<https://devfeed.tech/tags/json.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [s3](<https://devfeed.tech/tags/s3.md>), [testing](<https://devfeed.tech/tags/testing.md>), [v1](<https://devfeed.tech/tags/v1.md>), [websocket](<https://devfeed.tech/tags/websocket.md>)

### AI overview

Bun v1.3.6 fixes 45 issues and adds APIs for creating and extracting compressed tar archives, parsing JSON with comments, and working with virtual files. The release also improves bundle analysis, cross-compilation, React Fast Refresh support, async operations, hashing, WebSockets, S3, testing, SQLite, and Node.js compatibility.

### Source excerpt

Fixes 45 issues (addressing 125 👍). Bun.Archive API for creating & extracting tarballs with gzip compression, Bun.JSONC for parsing JSON with comments, metafile & files options in Bun.build for bundle analysis and virtual files, Response.json() 3.5x faster, 15% faster async/await, 30% faster Promise.race, 20x faster Bun.hash.crc32, faster Buffer.indexOf/includes with SIMD, HTTP/HTTPS proxy support for WebSocket, S3 Requester Pays support, --grep flag for bun test, fake timers now work with @testing-library/react, SQLite updated to 3.51.2, and numerous Node.js compatibility improvements.

## Use Swift with Temporal

DevFeed: [Use Swift with Temporal](<https://devfeed.tech/articles/use-swift-with-temporal-36022.md>)

Original publisher: [Read original article](<https://temporal.io/blog/temporal-now-supports-swift>)

Author: Shy Ruparel

Published: 2025-11-10T00:00:00Z

Content type: release

Language: en

Sources: [Temporal](<https://devfeed.tech/sources/temporal-blog.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>)

Tags: [announcements](<https://devfeed.tech/tags/announcements.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [github](<https://devfeed.tech/tags/github.md>), [grpc](<https://devfeed.tech/tags/grpc.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [swift](<https://devfeed.tech/tags/swift.md>), [swift-6-2](<https://devfeed.tech/tags/swift-6-2.md>)

### AI overview

Temporal announces a Swift SDK for building durable, fault-tolerant, long-running workflows with Swift 6.2, async/await, and structured concurrency. The SDK supports automatic handling of failures, retries, persistence, and crash recovery, and integrates with Temporal through Swift C interop and gRPC-swift.

### Source excerpt

Announcing the Swift Temporal SDK. Build durable, fault-tolerant Workflows in Swift 6.2 with async/await and structured concurrency.

## Promise based Web Worker Messaging

DevFeed: [Promise based Web Worker Messaging](<https://devfeed.tech/articles/promise-based-web-worker-messaging-37370.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/web-workers-promises/>)

Author: Stanko

Published: 2025-11-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [Promise](<https://devfeed.tech/topics/promise.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [Web](<https://devfeed.tech/topics/web.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Code](<https://devfeed.tech/topics/code.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [code](<https://devfeed.tech/tags/code.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [event](<https://devfeed.tech/tags/event.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [messaging](<https://devfeed.tech/tags/messaging.md>), [thread](<https://devfeed.tech/tags/thread.md>), [web](<https://devfeed.tech/tags/web.md>), [worker](<https://devfeed.tech/tags/worker.md>)

### AI overview

This tutorial presents a Promise-based wrapper for Web Worker messaging. It explains how unique message identifiers map worker responses to stored promises, allowing the main thread to resolve or reject the corresponding promise and use async/await with simpler error handling. The same pattern can also be applied to Service Workers.

### Source excerpt

If you've ever used Web Workers (or any other event-based communication), you probably noticed that this kind of code can be hard to read and reason about. You also have to implement some kind of identifier for each message to recognize which worker response corresponds to which request. To simplify that, we can write a small wrapper that lets us use Promises to communicate with Workers. I'll show you an example for Web Workers, but the same pattern can be applied to Service Workers as well. The resulting API looks like this: const workerResponse = await sendToWorker(data); I first used this approach in Pulsar, because I wanted to parse and execute the user's code in a Web Worker, but also wait for the worker to finish before providing data for the next frame. Implementation # The idea is fairly simple - before sending a message to the worker, we create a unique id and a promise. We store the promise in a map using the id as the key. Then we send an event to the worker, including both the data and the id, and return the promise to the caller. When the worker finishes its calculation, it sends back a message that includes the result and the same id. In the main thread, we listen for these messages. When one arrives, we use the id to find the corresponding promise in our map. Finally, based on the worker's result, we resolve or reject that promise. It might sound like a lot, but the code is actually quite straightforward: send-to-worker.jsCopy // Worker initialization const worker = new Worker("./path-to-your-worker.js"); // Map of promises const promises = {}; worker.addEventListener("message", (e) => { // Listen to worker messages and find the correct promise matching the id // Then resolve or reject it depending on the response if (e.data.error) { promises[e.data.id].reject(e.data.error); } else { promises[e.data.id].resolve(e.data.data); } // Remove the resolver reference delete promises[e.data.id]; }); // For identifiers it is safe to use a simple integer // whic

## Kotlin Coroutines Compared with Reactor for Sequential and Asynchronous Operations

DevFeed: [Kotlin Coroutines Compared with Reactor for Sequential and Asynchronous Operations](<https://devfeed.tech/articles/coroutines-vs-reactor-when-elegance-and-simplicity-crush-complexity-39263.md>)

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

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

Content type: comparison

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>), [Reactive Streams](<https://devfeed.tech/topics/reactive-streams.md>), [RxJava](<https://devfeed.tech/topics/rxjava.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Android](<https://devfeed.tech/topics/android.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [await](<https://devfeed.tech/tags/await.md>), [backend](<https://devfeed.tech/tags/backend.md>), [compare](<https://devfeed.tech/tags/compare.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [reactive-streams](<https://devfeed.tech/tags/reactive-streams.md>), [rxjava](<https://devfeed.tech/tags/rxjava.md>), [simple](<https://devfeed.tech/tags/simple.md>), [time](<https://devfeed.tech/tags/time.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

### AI overview

This article compares Kotlin Coroutines with Reactor for backend and Android development. It argues that coroutines provide more readable and straightforward syntax for sequential and asynchronous operations, while Reactor requires additional operators, concepts, and patterns.

### Source excerpt

A comparison of Kotlin Coroutines and Reactor, highlighting the elegance and simplicity of Coroutines over the complexity of Reactor.

## 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.

## Fastify plugins as building blocks for a backend Node.js API

DevFeed: [Fastify plugins as building blocks for a backend Node.js API](<https://devfeed.tech/articles/fastify-plugins-as-building-blocks-for-a-backend-node-js-api-7915.md>)

Original publisher: [Read original article](<https://snyk.io/blog/fastify-plugins-for-backend-node-js-api/>)

Author: Liran Tal

Published: 2024-05-28T05:00:00Z

Content type: article

Language: en

Sources: [Snyk](<https://devfeed.tech/sources/blog-rss-feed-snyk.md>)

Topics: [Fastify](<https://devfeed.tech/topics/fastify.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [API](<https://devfeed.tech/topics/api.md>), [Application Development](<https://devfeed.tech/topics/application-development.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [awareness](<https://devfeed.tech/tags/awareness.md>), [backend](<https://devfeed.tech/tags/backend.md>), [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [devrel](<https://devfeed.tech/tags/devrel.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [performance](<https://devfeed.tech/tags/performance.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [routing](<https://devfeed.tech/tags/routing.md>), [snyk-code](<https://devfeed.tech/tags/snyk-code.md>), [snyk-open-source](<https://devfeed.tech/tags/snyk-open-source.md>), [speed](<https://devfeed.tech/tags/speed.md>), [web](<https://devfeed.tech/tags/web.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

This article presents Fastify and its plugin ecosystem as building blocks for backend Node.js APIs. It discusses Fastify's low overhead, performance-oriented architecture, open source community, native ECMAScript module support, async/await route definitions, promise-based asynchronous code, and radix-tree routing for efficient request handling.

### Source excerpt

This blog post will focus on the foundational building blocks of building backend Node.js APIs using Fastify and its recommended plugins in 2024.

## Oxidizing OCaml: Data Race Freedom

DevFeed: [Oxidizing OCaml: Data Race Freedom](<https://devfeed.tech/articles/oxidizing-ocaml-data-race-freedom-20202.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/oxidizing-ocaml-parallelism/>)

Author: Max Slater

Published: 2023-09-01T00:00:00Z

Content type: article

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [OCaml](<https://devfeed.tech/topics/ocaml.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [data](<https://devfeed.tech/topics/data.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Rust](<https://devfeed.tech/topics/rust.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [atomics](<https://devfeed.tech/tags/atomics.md>), [await](<https://devfeed.tech/tags/await.md>), [code](<https://devfeed.tech/tags/code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [data](<https://devfeed.tech/tags/data.md>), [ocaml](<https://devfeed.tech/tags/ocaml.md>), [rust](<https://devfeed.tech/tags/rust.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>)

### AI overview

This final post in a series explains how Jane Street uses OCaml modes and capsules to design a statically data-race-free API for multicore OCaml. It discusses shared-memory parallelism, the risks of mutable data races, and approaches for safely handling shared mutability across domains.

### Source excerpt

OCaml with Jane Street extensions is available from our public opam repo. Only a slice of the features described in this series are currently implemented.

## Firebase team profile: Charlotte Liang

DevFeed: [Firebase team profile: Charlotte Liang](<https://devfeed.tech/articles/firebaserfriday-charlotte-liang-16493.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2022/11/meet-firebaser-charlotte>)

Author: Paulette McCroskey

Published: 2022-11-18T00:00:00Z

Content type: article

Language: en

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

Topics: [Firebase](<https://devfeed.tech/topics/firebase.md>), [Swift](<https://devfeed.tech/topics/swift.md>), [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [SDK](<https://devfeed.tech/topics/sdk.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [community](<https://devfeed.tech/tags/community.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firebaserfriday](<https://devfeed.tech/tags/firebaserfriday.md>), [google](<https://devfeed.tech/tags/google.md>), [ios](<https://devfeed.tech/tags/ios.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [sdks](<https://devfeed.tech/tags/sdks.md>), [swift](<https://devfeed.tech/tags/swift.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>), [watchos](<https://devfeed.tech/tags/watchos.md>)

### AI overview

A mini-profile of Firebase team member Charlotte Liang covering her path from writing the Firebase Remote Config iOS SDK to modernizing Firebase SDKs with Swift. She also discusses iOS and watchOS app development, SwiftUI, and her preference for async/await over callback listeners.

### Source excerpt

Join us for the monthly mini-profiles on Firebase team members, aka "Firebasers", from all around the world! Learn about their backgrounds...

## React Labs: What We've Been Working On - June 2022

DevFeed: [React Labs: What We've Been Working On - June 2022](<https://devfeed.tech/articles/react-labs-what-we-ve-been-working-on-june-2022-2971.md>)

Original publisher: [Read original article](<https://react.dev/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022>)

Author: Andrew Clark, Dan Abramov, Jan Kassens, Joseph Savona, Josh Story, Lauren Tan, Luna Ruan, Mengdi Chen, Rick Hanlon, Robert Zhang, Sathya Gunasekaran, Sebastian Markbage, and Xuan Huang

Published: 2022-06-15T00:00:00Z

Content type: article

Language: en

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

Topics: [React](<https://devfeed.tech/topics/react.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Vite](<https://devfeed.tech/topics/vite.md>), [Webpack](<https://devfeed.tech/topics/webpack.md>), [Shopify](<https://devfeed.tech/topics/shopify.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [insights](<https://devfeed.tech/tags/insights.md>), [react](<https://devfeed.tech/tags/react.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [vercel](<https://devfeed.tech/tags/vercel.md>), [vite](<https://devfeed.tech/tags/vite.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

The React team shares research updates following the React 18 release, including work on React Server Components, async/await-based data fetching, boundary annotations, cross-ecosystem bundler semantics, and APIs for coordinating external assets across React environments.

### Source excerpt

React 18 was years in the making, and with it brought valuable lessons for the React team. Its release was the result of many years of research and exploring many paths. Some of those paths were successful; many more were dead-ends that led to new insights. One lesson we've learned is that it's frustrating for the community to wait for new features without having insight into these paths that we're exploring.

## Advanced Swift, fifth edition

DevFeed: [Advanced Swift, fifth edition](<https://devfeed.tech/articles/advanced-swift-fifth-edition-21708.md>)

Original publisher: [Read original article](<https://oleb.net/2022/advanced-swift-5/>)

Author: Ole Begemann

Published: 2022-03-28T14:03:30Z

Content type: release

Language: en

Sources: [Ole Begemann](<https://devfeed.tech/sources/ole-begemann.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [async/await](<https://devfeed.tech/topics/async-await.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [generics](<https://devfeed.tech/tags/generics.md>), [release](<https://devfeed.tech/tags/release.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

The fifth edition of Advanced Swift has been released. It is updated for Swift 5.6, adds a chapter on concurrency covering async/await, structured concurrency, and actors, and includes new material on property wrappers, result builders, protocols, and generics. The print edition is now a hardcover, and ebook owners receive a free update.

### Source excerpt

We released the fifth edition of our book Advanced Swift a few days ago. You can buy the ebook on the objc.io site. The hardcover print edition is printed and sold by Amazon (amazon.com, amazon.co.uk, amazon.de). Highlights of the new edition: Fully updated for Swift 5.6 A new Concurrency chapter covering async/await, structured concurrency, and actors New content on property wrappers, result builders, protocols, and generics The print edition is now a hardcover (for the same price) Free update for owners of the ebook A growing book for a growing language Updating the book always turns out to be more work than I expect. Swift has grown substantially since our last release (for Swift 5.0), and the size of the book reflects this. The fifth edition is 76 % longer than the first edition from 2016. This time, we barely stayed under 1 million characters: Character counts of Advanced Swift editions from 2016-2022. Many thanks to our editor, Natalye, for reading all this and improving our Dutch/German dialect of English. Hardcover For the first time, the print edition comes in hardcover (for the same price). Being able to offer this makes me very happy. The hardcover book looks much better and is more likely to stay open when laid flat on a table. We also increased the page size from 15x23 cm (6x9 in) to 18x25 cm (7x10 in) to keep the page count manageable (Amazon's print on demand service limits hardcover books to 550 pages). I hope you enjoy the new edition. If you decide to buy the book or if you bought it in the past, thank you very much! And if you're willing to write a review on Amazon, we'd appreciate it.

## About async functions

DevFeed: [About async functions](<https://devfeed.tech/articles/about-async-functions-48172.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/about-async-functions>)

Published: 2021-07-23T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [async](<https://devfeed.tech/topics/async.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [await](<https://devfeed.tech/topics/await.md>), [fetch](<https://devfeed.tech/topics/fetch.md>), [axios](<https://devfeed.tech/topics/axios.md>), [Scala](<https://devfeed.tech/topics/scala.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [await](<https://devfeed.tech/tags/await.md>), [axios](<https://devfeed.tech/tags/axios.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [javascript](<https://devfeed.tech/tags/javascript.md>)

### AI overview

A deep dive into JavaScript async functions, explaining how async/await relates to promise chaining, why async functions always return promises, and how this affects control flow and error handling.

### Source excerpt

A deep dive into async functions and how they are different from promise chaining

## New runtime configuration options with Cloud Functions for Firebase

DevFeed: [New runtime configuration options with Cloud Functions for Firebase](<https://devfeed.tech/articles/new-runtime-configuration-options-with-cloud-functions-for-firebase-16278.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2018/08/cloud-functions-for-firebase-config-node-8-timeout-memory-region>)

Author: Doug Stevenson

Published: 2018-08-13T00:00:00Z

Content type: release

Language: en

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

Topics: [Cloud Functions](<https://devfeed.tech/topics/cloud-functions.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Firebase CLI](<https://devfeed.tech/topics/firebase-cli.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [V8](<https://devfeed.tech/topics/v8.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [cloud-functions](<https://devfeed.tech/tags/cloud-functions.md>), [cloud-next](<https://devfeed.tech/tags/cloud-next.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firebase-cli](<https://devfeed.tech/tags/firebase-cli.md>), [json](<https://devfeed.tech/tags/json.md>), [launch](<https://devfeed.tech/tags/launch.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This Firebase team article describes new Cloud Functions for Firebase configuration options announced at Cloud Next 2018. It covers the beta Node.js 8 runtime, required Firebase CLI and firebase-functions versions, ECMAScript 2017 async/await support, TypeScript configuration, and per-function region, memory, and timeout settings.

### Source excerpt

News, tutorials, and updates from the Firebase team.

## Javascript's async/await and Promise in a few words

DevFeed: [Javascript's async/await and Promise in a few words](<https://devfeed.tech/articles/javascript-s-async-await-and-promise-in-a-few-words-35422.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/javascripts-async-await-and-promise-in-a-few-words/>)

Author: Graham King

Published: 2018-07-27T14:30:45Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [async/await](<https://devfeed.tech/topics/async-await.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [callback](<https://devfeed.tech/topics/callback.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [callback](<https://devfeed.tech/tags/callback.md>), [exception](<https://devfeed.tech/tags/exception.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

This tutorial explains how JavaScript uses Promises and async/await to handle operations that could otherwise block its single thread. It shows how async/await makes callback-based asynchronous code appear more linear while failures are handled through exceptions.

### Source excerpt

Unraveling the magic of async/await: From callbacks to linear code.

## Why you should use TypeScript for writing Cloud Functions

DevFeed: [Why you should use TypeScript for writing Cloud Functions](<https://devfeed.tech/articles/why-you-should-use-typescript-for-writing-cloud-functions-16253.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2018/01/why-you-should-use-typescript-for>)

Author: Doug Stevenson

Published: 2018-01-18T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Cloud Functions](<https://devfeed.tech/topics/cloud-functions.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [admin-sdk](<https://devfeed.tech/tags/admin-sdk.md>), [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [await](<https://devfeed.tech/tags/await.md>), [cloud-functions](<https://devfeed.tech/tags/cloud-functions.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [development](<https://devfeed.tech/tags/development.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firebase-cli](<https://devfeed.tech/tags/firebase-cli.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This Firebase tutorial explains why developers may choose TypeScript for Cloud Functions. It covers TypeScript features such as optional static type checking, classes, interfaces, generics, enums, and async/await, then focuses on using TSLint and the Firebase CLI to check and build code before deployment.

### Source excerpt

News, tutorials, and updates from the Firebase team.

## A glimpse of Async-Await on Android

DevFeed: [A glimpse of Async-Await on Android](<https://devfeed.tech/articles/a-glimpse-of-async-await-on-android-25998.md>)

Original publisher: [Read original article](<https://medium.com/@nhaarman/async-await-in-android-f0202cf31088?source=rss-fceb7a60a849------2>)

Author: Niek Haarman

Published: 2016-10-31T12:25:13Z

Content type: tutorial

Language: en

Sources: [Niek Haarman](<https://devfeed.tech/sources/stories-by-niek-haarman-on-medium.md>)

Topics: [async/await](<https://devfeed.tech/topics/async-await.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Android](<https://devfeed.tech/topics/android.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [API](<https://devfeed.tech/topics/api.md>), [GitHub API](<https://devfeed.tech/topics/github-api.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [database](<https://devfeed.tech/tags/database.md>), [developer](<https://devfeed.tech/tags/developer.md>), [github](<https://devfeed.tech/tags/github.md>), [i](<https://devfeed.tech/tags/i.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [network](<https://devfeed.tech/tags/network.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [thread](<https://devfeed.tech/tags/thread.md>), [threads](<https://devfeed.tech/tags/threads.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

This Android developer article compares several ways to perform network and I/O work without blocking the main thread, including threads, AsyncTask, callbacks, Rx, and Kotlin coroutines with async-await. Using a GitHub API example, it shows how coroutines can suspend computation while allowing continuation on the main thread, improving code readability. The article notes that it targets a preview version of Kotlin coroutines and omits cancellation and listener-removal details.

### Source excerpt

Note: this article was written for a preview version of coroutines for Kotlin. Its details have changed since then. Kotlin 1.1 will bring coroutines to the language, which allows computations to be suspended at some points and continue later on. The obvious example is async-await, as introduced a couple of years ago in C#. Every Android developer knows that when you deal with network requests and other I/O tasks, you will need to make sure you don't block the main thread, and don't touch the UI from a background thread. Over the years dozens of techniques have come and gone. This article lists a few of the most used ones, and shows an example of the goodness that async-await can bring. The scenario We will fetch a user instance from the Github api and store it in some database. When this is done we show the result on-screen. I won't be explaining the techniques, as they should speak for themselves. Plain old threads Manual, full control fun threads() { val handler = Handler() Thread { try { val user = githubApi.user() userRepository.store(user) handler.post { threadsTV.text = "threads: [$user]" } } catch(e: IOException) { handler.post { threadsTV.text = "threads: [User retrieval failed.]" } } }.start() }Android's AsyncTask Nobody uses these anymore, right? fun asyncTask() { object : AsyncTask<Unit, Unit, GithubUser?>() { private var exception: IOException? = null override fun doInBackground(vararg params: Unit): GithubUser? { try { val user = githubApi.user() userRepository.store(user) return user } catch(e: IOException) { exception = e return null } } override fun onPostExecute(user: GithubUser?) { if (user != null) { asyncTaskTV.text = "asyncTask: [$user]" } else { asyncTaskTV.text = "asyncTask: [User retrieval failed.]" } } }.execute() }Callbacks Callback-hell, anyone? fun callbacks() { githubApi.userFromCall().enqueue(object : Callback<GithubUser> { override fun onResponse(call: Call<GithubUser>, response: Response<GithubUser>) { val user = response.body() userR