Understanding Pinning and Self-Referential Futures in Rust
In Rust, an async fn functions as a generator for a state machine. Rather than executing the logic immediately, it returns an anonymous type that implements the Future trait.
use std::future::Future;
async fn compute_value() -> u32 {
123
}
The semantics of a Future represent a value that might become available eventually. These objects ...
Posted on Sat, 15 Aug 2026 16:23:38 +0000 by gikon
Building Asynchronous TCP Client-Server Applications in C#
Impleemnting a Multi-Client TCP Server
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
public class NetworkServer
{
private readonly TcpListener _tcpListener;
private readonly int _listeningPort;
public NetworkServer(int port)
{
_listeningPort = port;
_ ...
Posted on Thu, 30 Jul 2026 16:59:15 +0000 by axon
Asynchronous Functions in ECMAScript
async functions in JavaScript provide a more intuitive approach to asynchronous programming. Built on Promises, they enable writing asynchronous code in a synchronous style.
Core Concepts of Async Functions
An async function is a specialized function type, essentially syntactic sugar for asynchronous operations. Introduced in the ECMAScript 201 ...
Posted on Mon, 27 Jul 2026 17:10:31 +0000 by Edward
HTTP Operations Using the .NET WebClient Class
The System.Net.WebClient type offers a straightforward abstraction for sending data to and receiving data from internet resources identified by a URI. It functions as a lightweight HTTP client, suitable for page retrieval, file transfers, and data exchange without complex protocol configuration.
Managing Configuration Properties
Several propert ...
Posted on Sat, 11 Jul 2026 16:48:37 +0000 by jamz310
CompletableFuture
Helper Utility Class
import java.util.StringJoiner;
public class DebugUtil {
public static void delay(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public static void logTimeAndThread(String tag) {
String result = new ...
Posted on Tue, 09 Jun 2026 18:10:10 +0000 by BlueSkyIS
Multithreading in .NET Core
Process:
A process is not a physical entity; it is a computer concept (virtual) that represents the collection of all computing resources (CPU, memory, disk, network, etc.) used when a program is running.
Thread:
Also a computer concept (virtual). It is the smallest execution flow of a process (any operation response requires an execution flow) ...
Posted on Sat, 06 Jun 2026 17:54:26 +0000 by eduard
Understanding Promise Internals: A Deep Dive into Promise/A+ Implementation
Constructor
The Promise constructor accepts an executor function that receives two arguments: resolve and reject. This is where the core initialization logic resides.
class SimplePromise {
constructor(executor) {
this.status = PENDING;
this.onFulfilledCallbacks = [];
this.onRejectedCallbacks = [];
executor(
...
Posted on Fri, 08 May 2026 04:06:07 +0000 by jmosterb