logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AsyncMutexTests

    Tests for AsyncMutex: the guarantee the whole point of the type rests on — that a critical section spanning an await runs to completion before the next caller enters.

    Inheritance
    object
    AsyncMutexTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.dll
    Syntax
    public class AsyncMutexTests

    Constructors

    AsyncMutexTests()

    Declaration
    public AsyncMutexTests()

    Methods

    Handle_ReleasesOnceEvenWhenDisposedTwice()

    Declaration
    public Task Handle_ReleasesOnceEvenWhenDisposedTwice()
    Returns
    Type Description
    Task

    LockAsync_AlreadyCancelledToken_DoesNotEnter()

    Declaration
    public void LockAsync_AlreadyCancelledToken_DoesNotEnter()

    LockAsync_LostUpdateIsPreventedAcrossAnAwait()

    Declaration
    public Task LockAsync_LostUpdateIsPreventedAcrossAnAwait()
    Returns
    Type Description
    Task

    LockAsync_ReleasesEvenWhenTheSectionThrows()

    Declaration
    public Task LockAsync_ReleasesEvenWhenTheSectionThrows()
    Returns
    Type Description
    Task

    LockAsync_SerializesOverlappingSections()

    Declaration
    public Task LockAsync_SerializesOverlappingSections()
    Returns
    Type Description
    Task
    In this article
    © 2026 Serenity. All Rights Reserved