docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Run

    Run(INetworkEventsApi, CancellationToken)

    Starts running the underlying network scenario. Make sure to handle when IsPaused and the cancellation token.

    Declaration
    protected abstract Task Run(INetworkEventsApi networkEventsApi, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    INetworkEventsApi networkEventsApi

    API to trigger network simulation events.

    CancellationToken cancellationToken

    Cancellation token to handle cancellation requests to the underlying task.

    Returns
    Type Description
    Task

    Task simulating the scenario

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)