LogoLogo
search
Ctrlk
HomepageDiscordItchPatreonAsset Store
  • Start Herechevron-right
  • star-christmasBeginner's Guide
  • people-groupAbout Yarn Spinner
  • face-smile-heartsCrediting Yarn Spinner
  • puzzleFAQ
  • Writing Yarn Scripts
    • First Steps with Scripting
    • spell-checkYarn Spinner Editorchevron-right
    • scroll-oldScripting Fundamentalschevron-right
    • hat-wizardAdvanced Scriptingchevron-right
  • Yarn Spinner for Unity
    • First Steps with Unity
    • desktop-arrow-downInstallation for Unitychevron-right
    • unityYarn Spinner in Unity Sceneschevron-right
    • face-smile-heartsYour First Yarn Spinner Game
    • display-codeCommands and Functions
    • earth-oceaniaLocalisation and Assetschevron-right
    • giftSampleschevron-right
    • puzzle-pieceUnity Add-Onschevron-right
  • puzzleComponentschevron-right
  • square-listChangelogchevron-right
  • Yarn Spinner for Other Engines
    • Godotchevron-right
    • Unrealchevron-right
    • Bevychevron-right
  • API
    • C#chevron-right
      • Yarn.Utility Namespacechevron-right
      • Yarn Namespacechevron-right
      • Yarn.Saliency Namespacechevron-right
      • Yarn.Markup Namespacechevron-right
      • Yarn.Compiler Namespacechevron-right
      • Yarn.Compiler.Upgrader Namespacechevron-right
      • Yarn.Unity Namespacechevron-right
        • ActionMarkupHandlerchevron-right
        • ActionRegistrationExtensionchevron-right
        • Actionschevron-right
        • BuiltinLocalisedLineProviderchevron-right
        • Culturechevron-right
        • Cultureschevron-right
        • DialogueOptionchevron-right
        • DialoguePresenterBasechevron-right
        • DialogueReferencechevron-right
        • DialogueRunnerchevron-right
        • Effectschevron-right
        • GeneratedVariableStorageExtensionschevron-right
        • IActionMarkupHandlerchevron-right
        • IActionRegistrationchevron-right
        • IAssetProviderchevron-right
        • IAsyncTypewriterchevron-right
        • ICommandchevron-right
        • IGeneratedVariableStorage
        • ILineProviderchevron-right
        • InMemoryVariableStoragechevron-right
        • InputSystemAvailabilitychevron-right
        • InstantTypewriterchevron-right
        • InterfaceContainer<TContainedType>chevron-right
        • IYarnTaskchevron-right
        • LetterTypewriterchevron-right
        • LineAdvancerchevron-right
        • LineCancellationTokenchevron-right
        • LineMetadatachevron-right
        • LinePresenterchevron-right
        • LinePresenterButtonHandlerchevron-right
        • LineProviderBehaviourchevron-right
        • Localizationchevron-right
        • LocalizationTypechevron-right
        • LocalizedLinechevron-right
        • MarkupPalettechevron-right
        • OptionItemchevron-right
        • OptionsPresenterchevron-right
        • PauseEventProcessorchevron-right
        • RegistrationTypechevron-right
        • ReplacementMarkupHandlerchevron-right
        • SerializableDictionarychevron-right
        • SerializableDictionary<TKey, TValue>chevron-right
        • SerializableDictionary<TKey, TValue, TValueStorage>chevron-right
        • SerializableDictionaryBasechevron-right
        • SerializableDictionaryBase<TKey, TValue, TValueStorage>chevron-right
        • StringTableEntrychevron-right
        • StyleMarkerProcessorchevron-right
        • UnityEventString
        • VariableStorageBehaviourchevron-right
        • VoiceOverPresenterchevron-right
        • WordTypewriterchevron-right
        • YarnActionAttributechevron-right
        • YarnCommandAttribute
        • YarnFunctionAttribute
        • YarnProjectchevron-right
        • YarnTaskchevron-right
          • Delay(int,CancellationToken)
          • Delay(TimeSpan,CancellationToken)
          • Forget()
          • FromResult<T>(T)
          • GetAwaiter()
          • IsCompleted()
          • IsCompletedSuccessfully()
          • SuppressCancellationThrow()
          • ToCoroutine(Func<YarnTask>)
          • WaitForAsyncOperation(AsyncOperationHandle,CancellationToken)
          • WaitForAsyncOperation<T>(AsyncOperationHandle<T>,CancellationToken)
          • WaitUntil(System.Func<bool>,System.Threading.CancellationToken)
          • WaitUntilCanceled(System.Threading.CancellationToken)
          • WhenAll(IEnumerable<YarnTask>)
          • WhenAll(YarnTask[])
          • WhenAll<T>(IEnumerable<YarnTask<T>>)
          • WhenAll<T>(YarnTask<T>[])
          • Yield()
          • CompletedTask
        • YarnTask<T>chevron-right
        • YarnTaskCompletionSourcechevron-right
        • YarnTaskCompletionSource<T>chevron-right
        • YarnTaskExtensionschevron-right
      • Yarn.Unity.Editor Namespacechevron-right
      • Yarn.Unity.Samples Namespacechevron-right
      • Yarn.Unity.UnityLocalization Namespacechevron-right
    • Rustchevron-right
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
githubEdit
  1. APIchevron-right
  2. C#chevron-right
  3. Yarn.Unity Namespace

YarnTask

Struct in Yarn.Unity

Inherits from System.ValueType

hashtag
Summary

public partial struct YarnTask

hashtag
Methods

Name
Description

Delay(int,CancellationToken)

Delay(TimeSpan,CancellationToken)

Creates a YarnTask that delays for the time indicated by timeSpan , and then returns.

Forget()

FromResult(T)

GetAwaiter()

IsCompleted()

IsCompletedSuccessfully()

SuppressCancellationThrow()

ToCoroutine(Func)

WaitForAsyncOperation(AsyncOperationHandle,CancellationToken)

WaitForAsyncOperation(AsyncOperationHandle,CancellationToken)

WaitUntil(System.Func,System.Threading.CancellationToken)

WaitUntilCanceled(System.Threading.CancellationToken)

WhenAll(IEnumerable)

WhenAll(YarnTask[])

WhenAll(IEnumerable<YarnTask>)

WhenAll(YarnTask[])

Yield()

hashtag
Properties

Name
Description

CompletedTask

PrevioussourceLineIDchevron-leftNextDelay(int,CancellationToken)chevron-right

Last updated 8 months ago

Was this helpful?

  • Summary
  • Methods
  • Properties

Was this helpful?