Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed Issue #3 related to Running in the wrong thread. Fixed issue re…
…lated to "continue with" running late. Fixed some tests.
- Loading branch information
1 parent
b2d93ed
commit 0a8e84e
Showing
23 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| using Foundation.Tasks; | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class TaskTests2 : MonoBehaviour { | ||
|
|
||
| [ContextMenu("Work0")] | ||
| public void Work0() | ||
| { | ||
| // works, animation continues | ||
| UnityTask.Run(RealWork).ContinueWith(t => Debug.Log("Done!")); | ||
| } | ||
| [ContextMenu("Work1")] | ||
| public void Work1() | ||
| { | ||
| // does not work. animation freezes | ||
| UnityTask<bool>.Run<bool, bool>(RealWork, false).ContinueWith(t => Debug.Log("Done! " + t.Result)); | ||
| } | ||
| private bool RealWork(bool test) | ||
| { | ||
| RealWork(); | ||
| return test; | ||
| } | ||
| private void RealWork() | ||
| { | ||
| const int count = 5; | ||
| for (var y = 0; y < count; y++) | ||
| { | ||
| UnityTask.Delay(1000); | ||
| Debug.Log("Delay "+y); | ||
| } | ||
| } | ||
| } |
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Foundation Tasks/Assets/Plugins/WSA/Foundation.Tasks.Windows.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Foundation Tasks/Assets/Plugins/WebGL/Foundation.Tasks.WebGL.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| m_EditorVersion: 5.0.0p3 | ||
| m_EditorVersion: 5.0.1f1 | ||
| m_StandardAssetsVersion: 0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.