Tag

Coroutine

1 views collected around this technical thread.

Bilibili Tech
Bilibili Tech
Jun 13, 2025 · Mobile Development

How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS

This article details Bilibili's practical experience with Kotlin Multiplatform (KMP), covering the choice of Bazel as a build system, multi‑language interop, dependency injection, modular export, state‑machine driven single‑direction data flow, and the successful deployment of shared logic and UI across Android, iOS, and HarmonyOS platforms.

BazelCompose UICoroutine
0 likes · 20 min read
How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS
php中文网 Courses
php中文网 Courses
Apr 23, 2025 · Backend Development

Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices

This article explains the fundamentals of Python coroutines and the asyncio library, covering basic concepts, key components, practical examples, advanced techniques such as mixing with threads, cancellation handling, performance optimizations, and common troubleshooting tips for asynchronous programming.

Asynchronous ProgrammingCoroutinePerformance
0 likes · 9 min read
Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices
php中文网 Courses
php中文网 Courses
Mar 18, 2025 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to use PHP asynchronous coroutines, powered by Swoole, to concurrently send large volumes of email, improving throughput and stability, and provides a complete code example with PHPMailer integration and channel-based task distribution.

CoroutineEmailPHP
0 likes · 5 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
Code Mala Tang
Code Mala Tang
Jan 26, 2025 · Fundamentals

Master Python Async: Boost Performance with asyncio, async/await, and Tasks

This guide explains Python asynchronous programming using the asyncio library, covering async functions, coroutine objects, the event loop, await syntax, task creation, and concurrent execution with asyncio.run, create_task, and gather to improve I/O‑bound performance.

Async/AwaitAsynchronous ProgrammingCoroutine
0 likes · 7 min read
Master Python Async: Boost Performance with asyncio, async/await, and Tasks
php中文网 Courses
php中文网 Courses
Dec 11, 2024 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to use PHP asynchronous coroutines and Swoole to concurrently send large volumes of email, improving speed, stability, and resource usage, and includes a complete code example with PHPMailer integration.

CoroutineEmailPHP
0 likes · 6 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
php中文网 Courses
php中文网 Courses
Nov 28, 2024 · Backend Development

Advanced Coroutine Frameworks with Swoole 5, Hyperf 3, and PHP 8

This course provides an in‑depth exploration of Swoole 5, Hyperf 3, and PHP 8 coroutine frameworks, teaching developers how to leverage coroutines for high‑performance, concurrent PHP applications through practical, step‑by‑step instruction and comprehensive coverage of installation, core principles, and advanced implementation techniques.

Backend DevelopmentCoroutineHyperf
0 likes · 5 min read
Advanced Coroutine Frameworks with Swoole 5, Hyperf 3, and PHP 8
php中文网 Courses
php中文网 Courses
Nov 13, 2024 · Backend Development

Deep Dive into Swoole5, Hyperf3, and PHP8 Coroutine Frameworks

This course provides an in‑depth analysis of the new coroutine features in Swoole5, Hyperf3, and PHP8, teaching developers how to leverage coroutines for higher concurrency, improved performance, and efficient PHP backend development through practical, hands‑on examples.

Backend DevelopmentCoroutineHyperf
0 likes · 6 min read
Deep Dive into Swoole5, Hyperf3, and PHP8 Coroutine Frameworks
Test Development Learning Exchange
Test Development Learning Exchange
Oct 14, 2024 · Fundamentals

Understanding async and await in Python with Practical Examples

This article introduces Python's async and await keywords, explains how they enable coroutine programming, and provides multiple practical examples including simple coroutine definitions, awaiting tasks, concurrent execution with asyncio.gather, HTTP requests using aiohttp, and resource management with custom coroutine-based managers.

ConcurrencyCoroutineasync
0 likes · 6 min read
Understanding async and await in Python with Practical Examples
php中文网 Courses
php中文网 Courses
Sep 11, 2024 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to improve the speed and stability of bulk email delivery in modern web applications by using PHP asynchronous coroutines with Swoole, providing a detailed code example that leverages PHPMailer, channels, and coroutine management.

CoroutineEmailPHP
0 likes · 5 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
Deepin Linux
Deepin Linux
Aug 26, 2024 · Fundamentals

Understanding and Preventing Memory Leaks in C++ Applications

The article explains what memory leaks are, common causes, and presents practical techniques such as avoiding heap allocations, using smart pointers, employing arena allocators, leveraging coroutines, applying RAII, and debugging with tools like gperftools to detect and resolve leaks in C++ programs.

C++CoroutineMemory Leak
0 likes · 12 min read
Understanding and Preventing Memory Leaks in C++ Applications
Python Programming Learning Circle
Python Programming Learning Circle
Jul 12, 2024 · Backend Development

Understanding Python Coroutines and Asynchronous HTTP Requests with httpx

This article introduces Python coroutines, compares them with multithreading, explains when to use them, and demonstrates how the httpx library can perform asynchronous HTTP requests to dramatically improve backend performance, including installation steps and a benchmark against synchronous requests.

CoroutinePerformancePython
0 likes · 7 min read
Understanding Python Coroutines and Asynchronous HTTP Requests with httpx
php中文网 Courses
php中文网 Courses
May 21, 2024 · Backend Development

Deep Dive into Swoole 5, Hyperf 3, and PHP 8 Coroutine Frameworks

This course offers an in‑depth exploration of Swoole 5, Hyperf 3, and PHP 8 coroutine features, teaching developers how to harness asynchronous programming to boost concurrency, performance, and efficiency in modern PHP applications through practical, hands‑on examples.

Backend DevelopmentCoroutineHyperf
0 likes · 4 min read
Deep Dive into Swoole 5, Hyperf 3, and PHP 8 Coroutine Frameworks
Deepin Linux
Deepin Linux
Nov 17, 2023 · Backend Development

Understanding Coroutines: Principles, Implementations, and Performance in C/C++

This article explains the concept of coroutines as lightweight user‑level threads, compares them with traditional threads, details various implementation mechanisms in C/C++ (including libco and NtyCo), and demonstrates how they improve I/O‑bound server performance through examples and code snippets.

C++CoroutineNtyCo
0 likes · 45 min read
Understanding Coroutines: Principles, Implementations, and Performance in C/C++
php中文网 Courses
php中文网 Courses
Nov 8, 2023 · Backend Development

Implementing Thread Pools and Coroutines in PHP

This article explains how to implement low‑level thread pools and coroutine mechanisms in PHP, providing detailed code examples that demonstrate creating a ThreadPool class, managing worker threads, and using generator‑based coroutines to achieve high‑performance, concurrent execution.

ConcurrencyCoroutineMultithreading
0 likes · 5 min read
Implementing Thread Pools and Coroutines in PHP
php中文网 Courses
php中文网 Courses
Oct 14, 2023 · Backend Development

Encapsulated Concurrency Programming in PHP: Multi‑Process, Multi‑Thread, and Coroutine Examples

This article explains how to implement encapsulated concurrent programming in PHP by using the pcntl extension for multi‑processes, the pthread extension for multi‑threads, and the Swoole extension for coroutines, providing clear code examples and discussing the advantages of each approach.

ConcurrencyCoroutineMulti-Process
0 likes · 5 min read
Encapsulated Concurrency Programming in PHP: Multi‑Process, Multi‑Thread, and Coroutine Examples
Test Development Learning Exchange
Test Development Learning Exchange
Oct 12, 2023 · Backend Development

Practical Examples of Python Coroutine Libraries: asyncio, gevent, and trio

This article introduces Python coroutines as a lightweight concurrency model and provides ten practical code examples demonstrating how to use the asyncio, gevent, and trio libraries for asynchronous I/O, concurrent network requests, file operations, task scheduling, and more.

Asynchronous ProgrammingCoroutinePython
0 likes · 7 min read
Practical Examples of Python Coroutine Libraries: asyncio, gevent, and trio
Refining Core Development Skills
Refining Core Development Skills
Aug 31, 2023 · Fundamentals

Understanding Go's Runtime Entry Point and GMP Scheduler

This article explains how a Go hello‑world program starts, tracing the ELF entry point, runtime initialization, GMP scheduler setup, creation of the main goroutine, and the flow into the user's main function.

CoroutineGMPGo
0 likes · 18 min read
Understanding Go's Runtime Entry Point and GMP Scheduler
php中文网 Courses
php中文网 Courses
May 24, 2023 · Backend Development

What Are Fibers in PHP 8.0 and How to Use Them to Solve High Concurrency Issues

This article explains PHP 8.0 Fibers as lightweight coroutines, why they improve high‑concurrency performance, and provides step‑by‑step Swoole‑based code examples for creating connection pools and managing asynchronous tasks in backend applications.

ConcurrencyCoroutinePHP
0 likes · 4 min read
What Are Fibers in PHP 8.0 and How to Use Them to Solve High Concurrency Issues
php中文网 Courses
php中文网 Courses
May 21, 2023 · Backend Development

Implementing Multithreaded Bulk Email Sending with PHP and Swoole

This article explains how to use the PHP Swoole extension to create asynchronous, coroutine‑based multithreaded email sending, dramatically improving the performance of bulk mail dispatch compared with traditional single‑threaded PHP scripts.

CoroutineEmailMultithreading
0 likes · 8 min read
Implementing Multithreaded Bulk Email Sending with PHP and Swoole
vivo Internet Technology
vivo Internet Technology
Apr 19, 2023 · Fundamentals

Coroutines and Their Implementation in Tars C++

The article introduces coroutine fundamentals and classifications, then explains how the Tars C++ framework (v3.0.0) implements stackful, symmetric coroutines using Boost.Context for user‑mode context switching and an epoll‑driven scheduler that manages coroutine lifecycles, states, and operations such as go, yield, sleep, and put.

Asynchronous ProgrammingC++Coroutine
0 likes · 13 min read
Coroutines and Their Implementation in Tars C++