diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2018-08-23 12:49:57 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2018-08-23 12:50:04 -0400 |
commit | 514856d8c79bee4a35c61aa08213fd774c7a7ee9 (patch) | |
tree | 8f7fbca4a830320357b9cf440e6640213a6c2ff1 /modules/mono/glue/cs_files/Interfaces | |
parent | a1b594c2fc4c82c9dca847f8431852a970225e1a (diff) |
[Mono] Move several small related files
Diffstat (limited to 'modules/mono/glue/cs_files/Interfaces')
-rw-r--r-- | modules/mono/glue/cs_files/Interfaces/IAwaitable.cs | 12 | ||||
-rw-r--r-- | modules/mono/glue/cs_files/Interfaces/IAwaiter.cs | 18 |
2 files changed, 30 insertions, 0 deletions
diff --git a/modules/mono/glue/cs_files/Interfaces/IAwaitable.cs b/modules/mono/glue/cs_files/Interfaces/IAwaitable.cs new file mode 100644 index 0000000000..0397957d00 --- /dev/null +++ b/modules/mono/glue/cs_files/Interfaces/IAwaitable.cs @@ -0,0 +1,12 @@ +namespace Godot +{ + public interface IAwaitable + { + IAwaiter GetAwaiter(); + } + + public interface IAwaitable<out TResult> + { + IAwaiter<TResult> GetAwaiter(); + } +} diff --git a/modules/mono/glue/cs_files/Interfaces/IAwaiter.cs b/modules/mono/glue/cs_files/Interfaces/IAwaiter.cs new file mode 100644 index 0000000000..d3be9d781c --- /dev/null +++ b/modules/mono/glue/cs_files/Interfaces/IAwaiter.cs @@ -0,0 +1,18 @@ +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(); + } +} |