Trending

#AsyncAwait

Latest posts tagged with #AsyncAwait on Bluesky

Latest Top
Trending

Posts tagged #AsyncAwait

Preview
Dart Has No Threads. So How Does Flutter Handle Concurrency — and Why Do Interviews Go There? Isolates, the Event Loop, Microtask Queue, async/await, and compute() — the full concurrency model that most Flutter developers use daily…

I just published Dart Has No Threads.
So How Does Flutter Handle Concurrency — and Why Do Interviews Go There? medium.com/p/dart-has-n...
#Flutter #Dart #FlutterDev #DartIsolate #AsyncAwait #EventLoop #FlutterInterview #DartAsync #Concurrency #MobileDevelopment #DartStream #FlutterPerformance

1 0 0 0
Preview
RxSwift or Combine? The Question That Exposes Whether You Actually Understand Reactive Programming Senior iOS interviews don’t just ask you to name operators. They ask you to explain backpressure, retention cycles, scheduler switching…

I just published RxSwift or Combine?
The Question That Exposes Whether You Actually Understand Reactive Programming medium.com/p/rxswift-or...
#iOS #Swift #RxSwift #Combine #ReactiveProgramming #iOSInterview #SwiftUI #SwiftConcurrency #MobileDevelopment #TechInterview #iOSDev #AsyncAwait

1 0 0 0
Preview
Understanding task cancellation and lifetimes in Swift concurrency Swift automatically manages the lifetime and cancellation of structured tasks, but unstructured and detached tasks behave differently. In this article, we look at how cancellation propagates, when…

🔄 𝑈𝑛𝑑𝑒𝑟𝑠𝑡𝑎𝑛𝑑𝑖𝑛𝑔 𝑡𝑎𝑠𝑘 𝑐𝑎𝑛𝑐𝑒𝑙𝑙𝑎𝑡𝑖𝑜𝑛 𝑎𝑛𝑑 𝑙𝑖𝑓𝑒𝑡𝑖𝑚𝑒𝑠 • 𝗡𝗮𝘁𝗮𝘀𝗰𝗵𝗮 𝗙𝗮𝗱𝗲𝗲𝘃𝗮

How do structured and unstructured tasks behave differently when cancelled? Break down 𝑎𝑠𝑦𝑛𝑐/𝑎𝑤𝑎𝑖𝑡 task lifetimes in Swift's concurrency system.

#Swift #Concurrency #AsyncAwait

tanaschita.com/swift-async-...

1 0 0 0
Preview
Task.sleep() vs. Task.yield(): The differences explained - Wesley de Groot Task.sleep() vs. Task.yield() The differences explained What is Task.sleep()? With Task.sleep(), you can suspend the execution of a task for a specified duration. This is useful when you want to…

⏱️ 𝑇𝑎𝑠𝑘.𝑠𝑙𝑒𝑒𝑝() 𝑣𝑠. 𝑇𝑎𝑠𝑘.𝑦𝑖𝑒𝑙𝑑() by Wesley de Groot (@0xwdg.bsky.social)

Not sure when to use each? Wesley explains the difference between fixed-duration suspension and voluntary control yielding.

#Swift #Concurrency #AsyncAwait

wesleydegroot.nl/blog/task-sl...

3 0 0 0
Preview
Cancelling async tasks in SwiftUI Learn how to cancel async tasks in SwiftUI using the task and task(id:) modifiers. See how SwiftUI automatically cancels work when views disappear or input changes, and how to handle manual cancellation for long-running or service-level tasks.

⚡ 𝐶𝑎𝑛𝑐𝑒𝑙𝑙𝑖𝑛𝑔 𝑎𝑠𝑦𝑛𝑐 𝑡𝑎𝑠𝑘𝑠 𝑖𝑛 𝑆𝑤𝑖𝑓𝑡𝑈𝐼 by Natascha Fadeeva

Runaway async tasks in SwiftUI? Learn both automatic and manual approaches for proper async work cancellation.

https://tanaschita.com/swiftui-cancel-async-work

#SwiftUI #Concurrency #AsyncAwait

1 0 0 0

Discover how #AsyncAwait in C# simplifies asynchronous programming! This beginner-friendly guide breaks down the mechanics behind these powerful tools and their role in improving code efficiency. Dive in and enhance your C# skills today. #CSharp

0 0 0 0
Original post on mastodon.nzoss.nz

#TIL about #ResonateHQ;

https://www.resonatehq.io/

No, not the moribund music streaming co-op, the developers describe their project as;

"An open-source implementation of Distributed Async Await."

An open protocol described in a diagram here […]

0 0 0 0
Post image

Kicking off July by diving deep into JavaScript's async/await. Mastering asynchronous operations is key for smooth user experiences. What's your go-to pattern? #JavaScript #AsyncAwait #WebDev 💻✨

0 0 0 0
Preview
⏳ Why Async/Await in .NET Isn’t Just About Speed But It’s About Writing Smarter Code A beginner’s guide to async/await in .NET explained with clarity and real world code for developers who care about performance and people.

Explore how async/await in .NET enhances code quality beyond speed. It simplifies complex tasks, improves readability, and supports maintainability. Dive into smarter coding with #DotNet. #AsyncAwait

2 0 0 0
Preview
Modern Networking in iOS with URLSession and async/await: A Practical Guide Networking is at the core of most iOS apps. Almost every modern application needs to talk to remote services, fetch or send data, and present fetched information in real time. This makes it essential....

Modern iOS networking doesn’t need to be complicated.

Learn how to build a simple and clean network layer using URLSession with Swift async/await.

Full tutorial:
www.promobile.dev/tutorials/mo...

#iOSDev #Swift #AsyncAwait

1 1 0 0
Zig Roadmap 2026
Zig Roadmap 2026 YouTube video by Zig SHOWTIME

Zig Roadmap 2026 youtu.be/x3hOiOcbgeA?... #zig #asyncawait .. zig is going to have (again) an Async/Await implementation and their approach won't have function "colors", you simply select an "async" engine: event loop vs threaded and take a dependency on a async engine api.

0 0 0 0
Preview
298 - Stop! In nome del Token - La cancellazione cooperativa in C# In questa puntata parliamo di CancellationToken in C#: cos’è, come funziona e perché è fondamentale per scrivere codice asincrono e reattivo. Vediamo come usarlo per annullare operazioni in modo cooperativo, come gestire timeout, come combinare più token con LinkedTokenSource e quali errori evitare. Un episodio per chi vuole fermare le cose… nel modo giusto! - https://learn.microsoft.com/en-us/dotnet/standard/threading/cancellation-in-managed-threads - https://medium.com/@mitesh_shah/a-deep-dive-into-c-s-cancellationtoken-44bc7664555f - https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtokensource #dotnet #cancellationtoken #asyncawait #dotnetinpillole #podcast

📣 New Podcast! "298 - Stop! In nome del Token - La cancellazione cooperativa in C#" on @Spreaker #asyncawait #cancellationtoken #dotnet

0 1 0 0
Preview
Stop Misusing async/await: 9 Hidden C# Pitfalls That Slow You Down Most C# developers love async/await— and rightly so. It's elegant, non-blocking, and makes code readable. But beneath the surface lies a…

Enhance your async/await usage in C#! Discover common pitfalls that can slow down your applications and learn effective practices to avoid them. Boost your programming efficiency! #CSharp #AsyncAwait

0 0 0 0
Post image

𝐀𝐬𝐲𝐧𝐜/𝐚𝐰𝐚𝐢𝐭 𝐢𝐬 𝐭𝐫𝐢𝐜𝐤𝐲 😬

𝐓𝐨𝐩 𝟓 𝐦𝐢𝐬𝐭𝐚𝐤𝐞𝐬 .NET devs make:
❌ Deadlocks
❌ async void
❌ Silent crashes
One wrong move can break your app.

👉 Fix your async flow now: www.c-sharpcorner.com/blogs/top-5-...

#DotNet #CSharp #AsyncAwait #DevTips #CSharpCorner

2 0 0 0
Preview
296 - L’arte dell’attesa: async e await senza segreti Ok, quante volte hai scritto await senza davvero sapere cosa sta succedendo dietro? In questa puntata ci facciamo una bella chiacchierata su come funziona l’asincronia in C#: parliamo di Task, ValueTask, TaskCompletionSource.  Ecco alcune risorse per approfondire il tutto: - https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md - https://learn.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming - https://github.com/meysamhadeli/awesome-dotnet-tips/blob/main/docs/csharp/async/async-and-await.md - https://github.com/meysamhadeli/awesome-dotnet-tips/blob/main/docs/csharp/async/async-best-practice.md Video di Marco Minerva: - https://youtu.be/23oyxTAutsQ?si=ZC2JWTG2IU3M3X_7 - https://youtu.be/L4J-m45NWSo?si=wy2emxJwFMvBJ_63 #dotnet #asyncawait #dotnetinpillole 

📣 New Podcast! "296 - L’arte dell’attesa: async e await senza segreti" on @Spreaker #asyncawait #dotnet #task #valuetask

0 0 0 0
Preview
Swift Continuations - Swift Shorts Hey Swifters :), In this guide i would like to talk about continuations in Swift and their types. Let's say you are working on your iOS app, and you need to use an old networking library that still us...

Swift Continuations - Your Bridge from Callback Hell to Async Paradise

✨ Learn all 4 continuation types
🔄 Convert old callbacks to modern async/await
⚡ Performance tips

Read more: swiftshorts.com/2025/06/05/s...

#SwiftUI #iOS #AsyncAwait #SwiftLang #iOSDev

7 0 1 0
Video

Async to run background function or task in C# Tip #40 Using async and Task in C# to run a background function while the main method continues executing a counter until the background task completes. #CSharp #AsyncAwait #Multithreading #Task #DotNet #BackgroundProcessing

0 0 0 0
Video

Async and Await Non-Blocking UI in C# Tip #39 Using async and await in C# keeps the UI responsive during long tasks like delays. Without them, the UI freezes and becomes unresponsive until the task is complete. #CSharp #AsyncAwait #ResponsiveUI #ProgrammingTips #DotNet #vscode

1 0 0 0
Preview
The Truth About AddAsync: When to Use It in EF Core (and When Not To) Let's crack open that EF Core mystery: **Why does`AddAsync()` exist when there's no `UpdateAsync()` or `RemoveAsync()`?** Feels like unfair treatment, right? Spoiler: It’s not favoritism—it’s about _async value generation_ , not database calls. Let’s break it down. ### The Big Misconception **`AddAsync()` does NOT talk to your database.** Nope, not even a little. When you write: await db.Users.AddAsync(user); **Zero bytes hit the database.** All it does is tell EF: _"Track this new entity; insert it later when I save."_ The actual `INSERT` happens at `SaveChangesAsync()`. So why `Async`? 🤔 ### The Real Reason: Async Value Generation Imagine your entity needs a unique ID **before saving** , like a distributed Snowflake ID from an external service: public class Order { public long Id { get; set; } // Generated by a fancy async service! public string Customer { get; set; } } You’d write a custom generator: public class SnowflakeIdGenerator : ValueGenerator<long> { public override bool GeneratesTemporaryValues => false; public override ValueTask<long> NextAsync(EntityEntry entry, CancellationToken ct) => new ValueTask<long>(_GetIdAsync(ct)); private async Task<long> _GetIdAsync(CancellationToken ct) { await Task.Delay(50, ct); // Simulate network call return DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); } } ### The Problem: Blocking Threads If you use **synchronous`Add()`**: var order = new Order { Customer = "ZèD" }; db.Orders.Add(order); // ← SYNC CALL (DANGER!) await db.SaveChangesAsync(); EF tries to run `NextAsync()` **synchronously**. That `Task.Delay(50)`? It **blocks your thread** while waiting. In a busy ASP.NET Core app, this murders throughput. ### How `AddAsync()` Saves the Day var order = new Order { Customer = "ZèD" }; await db.Orders.AddAsync(order); // ← AWAITS async ID generation! await db.SaveChangesAsync(); Now your async generator runs without blocking. No thread starvation, no performance bombs. ### Why No `UpdateAsync`/`RemoveAsync`? Simple: **They don’t generate values.** * **`Update()`** : Just marks entity as `Modified`. No async work needed. * **`Remove()`** : Just marks as `Deleted`. Nothing to await. Unless you’re doing something wild (like async blockchain lookups during deletion— _please don’t_), there’s **no async step** here. ### When Should YOU Use `AddAsync`? Scenario | Use `AddAsync`? | Why ---|---|--- Custom **async value generators** (IDs, audit stamps) | Yes | Avoids blocking threads Async-first apps (e.g., ASP.NET Core) | Yes | Consistency & future-proofing High-scale services | Yes | Prevents thread pool starvation Simple apps with no async generators | Optional | `Add()` works fine too ### Key Takeaways 1. **`AddAsync` enables async value generation** (like distributed IDs). 2. **Updates/deletes don’t need async** —they’re just state changes. 3. **No hidden database calls** in `AddAsync`—it’s all about pre-save logic. 4. **Default to`AddAsync`** in async code. It’s safer and more flexible. So next time you see `AddAsync`, remember: it’s not EF playing favorites. It’s your secret weapon for non-blocking async workflows. And hey, if you _really_ want `RemoveAsync()`… maybe go pet a dog instead. **TL;DR:** > `AddAsync()` = Async value generation (e.g., IDs). > > `Update()`/`Remove()` = No value generation → no `Async` needed.
0 0 0 0
Post image

Boost your JavaScript game! 💻
Master Closures, Promises, and Async/Await to write cleaner, faster, and more powerful code. 🚀
Unlock the secrets of async magic and level up your dev skills today! 🔥
#JavaScript #WebDev #AsyncAwait #Closures #Promises #CodingTips

www.devmind.tech/2025/02/boos...

1 0 0 0
C# Async and Await Explained: Simplifying Asynchronous Code - Quora

Learn how C# Async and Await simplify asynchronous programming. Master async code with clear examples in this C# tutorial designed for beginners and developers alike.
#CSharp #CSharpTutorial #AsyncAwait #LearnCSharp

Visit our website: www.quora.com/profile/Tpoi...

0 0 0 0
- YouTube Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

Channel9 What are the origins of async/await in C#? #CSharp #AsyncAwait #Programming #Coding #SoftwareDevelopment

0 0 0 0

Explaining async/await: It's like ordering takeout (await). You *can* doomscroll while waiting, but if the restaurant forgets your order (promise rejection)... you're just hungry and sad. #JavaScript #WebDev #AsyncAwait

0 0 0 0

Explaining async/await in JavaScript is like explaining Inception. You nod along, thinking you get it, then wake up screaming in callback hell. Did the promise resolve or are we still dreaming? #JavaScript #WebDev #AsyncAwait #CodingIsHardSometimes

0 0 0 0

Tried explaining async/await in JavaScript to my rubber duck. It now stares blankly, occasionally quacking 'callback hell'. I think I broke it. Or maybe... it finally understands the existential dread? 🦆 #JavaScript #AsyncAwait #RubberDuckDebugging #DevLife

0 0 0 0
Post image

Stop writing repetitive try-catch blocks! Use a simple wrapper to handle async errors effortlessly.

✅ Cleaner code
✅ Better error handling
✅ Less boilerplate

#CleanCode #JavaScript #ReactNative #AsyncAwait #DevTips

1 0 1 0
Preview
Boost Your Coding Efficiency with the Ultimate Modern JavaScript Cheat Sheet! Stop wasting time scrolling through endless documentation or Googling basic syntax—it's time to code smarter, not harder! Imagine this is part of your daily workflow: // Arrow functions simplified: const add = (a, b) => a + b; console.log(add(5, 3)); // 8 // Destructuring for clarity: const person = { name: "Alice", age: 30 }; const { name, age } = person; console.log(`${name} is ${age} years old`); // Async/Await for smooth data fetching: async function fetchData(url) { try { const res = await fetch(url); return await res.json(); } catch (error) { console.error("Error fetching data:", error); } } My Modern JavaScript Cheat Sheet is your go-to reference for mastering ES6+ features—packed with concise examples, best practices, and advanced techniques. Whether you're a beginner looking to level up or an experienced developer needing a quick refresher, this cheat sheet will save you time and boost your productivity. Ready to transform your coding game? Grab it now on Gumroad: https://tekisolve.gumroad.com/l/prprp
0 0 0 0
Preview
Boost Your Coding Efficiency with the Ultimate Modern JavaScript Cheat Sheet! Stop wasting time scrolling through endless documentation or Googling basic syntax—it's time to code smarter, not harder! Imagine this is part of your daily workflow: // Arrow functions simplified: const add = (a, b) => a + b; console.log(add(5, 3)); // 8 // Destructuring for clarity: const person = { name: "Alice", age: 30 }; const { name, age } = person; console.log(`${name} is ${age} years old`); // Async/Await for smooth data fetching: async function fetchData(url) { try { const res = await fetch(url); return await res.json(); } catch (error) { console.error("Error fetching data:", error); } } My Modern JavaScript Cheat Sheet is your go-to reference for mastering ES6+ features—packed with concise examples, best practices, and advanced techniques. Whether you're a beginner looking to level up or an experienced developer needing a quick refresher, this cheat sheet will save you time and boost your productivity. Ready to transform your coding game? Grab it now on Gumroad: https://tekisolve.gumroad.com/l/prprp
0 0 0 0
Preview
https://blog.stackademic.com/how-to-create-an-asynchronous-unit-in-delphi-51a1846bce35?source=rss----d1baaa8417a4---4 Defining a Unit to provide await functionality to your Delphi applications. Edijs Kolesnikovičs was kind enough to post this on linkedin…

Enhance your Delphi applications with async/await functionality thanks to this guide by Edijs Kolesnikovičs. Boost productivity and efficiency #Delphi #AsyncAwait blog.stackademic.com/how-to-create-an-asynchr...

0 0 0 0
Preview
JavaScript best practice: use return await

JavaScript best practice: use return await #javascript #asyncawait advancedweb.hu/shorts/javas...

1 0 0 0