Skip to content

Commit

Permalink
Merge pull request #8774 from 31/patch-1
Browse files Browse the repository at this point in the history
Update c_sharp_differences.rst ToSignal example
  • Loading branch information
skyace65 authored and mhilbrunner committed Jan 25, 2024
1 parent 3136779 commit cceb8ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tutorials/scripting/c_sharp/c_sharp_differences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -854,5 +854,8 @@ Example:

.. code-block:: csharp
await ToSignal(timer, "timeout");
GD.Print("After timeout");
public async Task SomeFunction()
{
await ToSignal(timer, Timer.SignalName.Timeout);
GD.Print("After timeout");
}

0 comments on commit cceb8ac

Please sign in to comment.