Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create nuget package for Unity helpers. #127

Merged
merged 1 commit into from
Sep 24, 2022

Conversation

timcassell
Copy link
Owner

@timcassell timcassell commented Sep 23, 2022

Resolves #125.

This also removes assigning the UnitySynchronizationContext to the ForegroundContext in edit mode (from #120), because Nuget only hosts compiled dlls, so we can't use conditional compilation for editor-only APIs. I do not want the Nuget package to diverge behaviorally from the Unity package. That means users will have to manually set the ForegroundContext in edit mode if they want to schedule continuations on the main thread.

I also cleaned up some of the code which may possibly break some users code if they were directly using any of the MonoBehaviours (like referencing PromiseBehaviour which I made internal, or using PromiseYielder as an object, which I changed to a static class). Those use cases never would have been recommended in any case, so I think it is worth breaking them for a minor version update.

@timcassell timcassell added the enhancement New feature or request label Sep 23, 2022
@timcassell timcassell added this to the v2.3.0 milestone Sep 23, 2022
@timcassell timcassell self-assigned this Sep 23, 2022
@timcassell timcassell merged commit 1612d78 into master Sep 24, 2022
@timcassell timcassell deleted the unity-helpers-nuget-package branch September 24, 2022 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate Nuget package for Unity helpers
1 participant