> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.instanttypewriter/yarn.unity.instanttypewriter.runtypewriter.md).

# RunTypewriter(Markup.MarkupParseResult,CancellationToken)

Method in [InstantTypewriter](/api/csharp/yarn.unity/yarn.unity.instanttypewriter.md)

## Summary

Displays the contents of a line over time.

```csharp
public async YarnTask RunTypewriter(Markup.MarkupParseResult line, CancellationToken cancellationToken)
```

## Remarks

This method is called when a dialogue presenter wants to deliver a line's text. The typewriter should present the text to the user; it may take as long as it needs to do so.

If `cancellationToken`'s `System.Threading.CancellationToken.IsCancellationRequested` becomes true, the typewriter effect should end early and present the entire contents of `line`.

## Parameters

| Name                                                                                           | Description                                                            |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [Yarn.Markup.MarkupParseResult](/api/csharp/yarn.markup/yarn.markup.markupparseresult.md) line | The line to display.                                                   |
| `System.Threading.CancellationToken` cancellationToken                                         | A token that indicates that the typewriter effect should be cancelled. |

## Returns

A task that completes when the typewriter effect has finished.
