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

API reference / Platform

FileCreation enum

What happens when the file exists, or does not.

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

Syntax

enum class FileCreation : std::uint8_t

Values

OpenExisting

Open an existing file; fail if there is none (OPEN_EXISTING).

Syntax

OpenExisting

CreateAlways

Create the file, or empty an existing one (CREATE_ALWAYS, O_CREAT | O_TRUNC).

Syntax

CreateAlways

CreateNew

Create the file; fail if it exists (CREATE_NEW, O_CREAT | O_EXCL).

Syntax

CreateNew

OpenAlways

Open the file, creating it if there is none (OPEN_ALWAYS, O_CREAT).

Syntax

OpenAlways

TruncateExisting

Open an existing file and empty it (TRUNCATE_EXISTING, O_TRUNC).

Syntax

TruncateExisting

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