Table of Contents

Method AddBookmarkAsync

Namespace
Millrace.Storage.SqlServer
Assembly
Millrace.Storage.SqlServer.dll

AddBookmarkAsync(BookmarkRecord, CancellationToken)

Records that an instance is waiting for a signal.

public ValueTask AddBookmarkAsync(BookmarkRecord bookmark, CancellationToken ct)

Parameters

bookmark BookmarkRecord
ct CancellationToken

Returns

ValueTask

Remarks

Standalone here, but the engine does not use it that way — a wait has to appear in the same atom as the cursor that describes where it resumes, which is why Bookmarks exists. Inserted separately, a bookmark can outlive a rolled-back checkpoint and wake an instance into a position it never reached.