Compare commits

...

5 Commits

Author SHA1 Message Date
Josh Cross
c444292922 Merge 02c51c8978 into 73a63b7f67 2025-10-04 18:35:48 +03:00
Ikiru Yoshizaki
73a63b7f67 Merge pull request #680 from Cysharp/ci/nuget_release
ci: add id-token: write for NuGet Trusted Publish
2025-10-01 16:31:33 +09:00
Ikiru Yoshizaki
30bec5d5c4 ci: add id-token: write for NuGet Trusted Publish 2025-10-01 16:03:54 +09:00
Josh Cross
02c51c8978 Change ToCoroutine<T>().Current to T? instead of just T 2025-04-17 16:04:28 -07:00
Josh Cross
58d5cc1ca6 Update ToCoroutineEnumerator<T> to return a T from Current instead of object 2025-04-17 15:47:45 -07:00
2 changed files with 3 additions and 2 deletions

View File

@@ -101,6 +101,7 @@ jobs:
needs: [update-packagejson, build-dotnet, build-unity]
permissions:
contents: write
id-token: write # required for NuGet Trusted Publish
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
with:
commit-id: ${{ needs.update-packagejson.outputs.sha }}

View File

@@ -854,7 +854,7 @@ namespace Cysharp.Threading.Tasks
Action<Exception> exceptionHandler = null;
bool isStarted = false;
UniTask<T> task;
object current = null;
T? current = null;
ExceptionDispatchInfo exception;
public ToCoroutineEnumerator(UniTask<T> task, Action<T> resultHandler, Action<Exception> exceptionHandler)
@@ -893,7 +893,7 @@ namespace Cysharp.Threading.Tasks
}
}
public object Current => current;
public T? Current => current;
public bool MoveNext()
{