-
Notifications
You must be signed in to change notification settings - Fork 11
Sample FruitsMerge #12
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
base: main
Are you sure you want to change the base?
Conversation
| { | ||
| await UniTask.Yield(); | ||
| if (cancellationToken.IsCancellationRequested) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider throwing an operation cancelled exception simply passing CT into yield
| /// RootLifetimeScope sets up the DI container for the game application, configuring essential components such as | ||
| /// the entry point (Bootstrap), controllers, and services. This setup ensures efficient dependency management and lifecycle handling during gameplay. | ||
| /// </summary> | ||
| public class RootLifetimeScope : LifetimeScope |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider not to use LifetimeScope cause it's tied to unity engine lifecycle. Try to keep control code centric.
| protected override async UniTask OnFlowAsync(CancellationToken cancellationToken) | ||
| { | ||
| _view = await _factory.CreateAsync(_data.ResourceId, cancellationToken); | ||
| cancellationToken.ThrowIfCancellationRequested(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can safely remove all cancellationToken.ThrowIfCancellationRequested(), cause asynchronous operations you're using will throw an exception anyway
WHAT Create sample for ControllersTree package