Preliminary. ThinkMeta ConcurrentTasks and this documentation are preliminary; everything is subject to change.

API reference / Platform

SocketShutdown struct

Which side Shutdown ends: SD_RECEIVE/SD_SEND/SD_BOTH on Windows, SHUT_RD/SHUT_WR/SHUT_RDWR elsewhere.

On this page
Use
import ThinkMeta.ConcurrentTasks.Platform.Socket;
Namespace
ThinkMeta::ConcurrentTasks::Platform
Platforms
Windows, Linux

Syntax

Fields

Receive

Windows only

No more receiving.

Syntax

static constexpr int Receive = SD_RECEIVE;

Linux only

No more receiving.

Syntax

static constexpr int Receive = SHUT_RD;

Send

Windows only

No more sending: the peer's receive returns 0 bytes once it has all data.

Syntax

static constexpr int Send = SD_SEND;

Linux only

No more sending: the peer's receive returns 0 bytes once it has all data.

Syntax

static constexpr int Send = SHUT_WR;

Both

Windows only

Neither.

Syntax

static constexpr int Both = SD_BOTH;

Linux only

Neither.

Syntax

static constexpr int Both = SHUT_RDWR;

Generated from ThinkMeta.ConcurrentTasks.API @ da816bc (2026-11-06).