现在的表格是叶子块,意味着表格内的元素只能是行内元素。但我在使用时经常需要这个元素是内容块,用来嵌套代码块。
样式是这样的:
Task Command | Implementation Method |
---|---|
Check if a task is completed | Example: bool bCompleted = Task.IsCompleted();Copy full snippet |
Wait for task completion | Example: Task.Wait(); Copy full snippet |
Wait for task completion with timeout | Example: bool bTaskCompleted = Task.Wait(FTimespan::FromMillisecond(100));Copy full snippet |
Wait until all tasks are completed | Example: TArray<FTask> Tasks = …; Wait(Tasks);Copy full snippet |
Retrieve task execution result. The call is blocked until the task is completed and its result is ready. | Example: TTask<int> Task = Launch (UE_SOURCE_LOCATION, []{ return 42; }); int Result = Task.GetResult();Copy full snippet |
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于