Skip to content

Commit 76decf0

Browse files
committed
Added ExcelAsyncFunction example.
1 parent 189adc3 commit 76decf0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/guides-basic/dotnet-native-aot-support.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,19 @@ public static async Task<string> NativeAsyncTaskHello(string name, int msDelay)
6262
await Task.Delay(msDelay);
6363
return $"Hello native async task {name}";
6464
}
65+
66+
[ExcelAsyncFunction]
67+
public static string NativeAsyncHello(string name, int msToSleep)
68+
{
69+
Thread.Sleep(msToSleep);
70+
return $"Hello native async {name}";
71+
}
6572
```
6673

6774
| Cell | Formula | Immediate Result | Final Result
6875
| ----- | ----------------------------------- | ---------------- | -------------------------
6976
| A1 | =NativeAsyncTaskHello("Test", 5000) | #N/A | Hello native async task Test
77+
| B1 | =NativeAsyncHello("Test", 5000) | #N/A | Hello native async Test
7078

7179
## AddIn
7280

0 commit comments

Comments
 (0)