summaryrefslogtreecommitdiff
path: root/modules/mono/glue/cs_files/IAwaiter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/glue/cs_files/IAwaiter.cs')
-rw-r--r--modules/mono/glue/cs_files/IAwaiter.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/mono/glue/cs_files/IAwaiter.cs b/modules/mono/glue/cs_files/IAwaiter.cs
new file mode 100644
index 0000000000..73c71b5634
--- /dev/null
+++ b/modules/mono/glue/cs_files/IAwaiter.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Runtime.CompilerServices;
+
+namespace Godot
+{
+ public interface IAwaiter : INotifyCompletion
+ {
+ bool IsCompleted { get; }
+
+ void GetResult();
+ }
+
+ public interface IAwaiter<out TResult> : INotifyCompletion
+ {
+ bool IsCompleted { get; }
+
+ TResult GetResult();
+ }
+}