Skip to content

used bevy_malek_async to make some async code more maintainable#38

Open
MalekiRe wants to merge 3 commits intojanhohenheim:mainfrom
MalekiRe:main
Open

used bevy_malek_async to make some async code more maintainable#38
MalekiRe wants to merge 3 commits intojanhohenheim:mainfrom
MalekiRe:main

Conversation

@MalekiRe
Copy link
Collaborator

( hopefully more maintainable )
let me know what you think.

Updated the Save and the get_navmesh_input.

Copy link
Owner

@janhohenheim janhohenheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits, not much to say except: wow, this is much better <3

Comment on lines +334 to +335
if let Some(_) = task.as_ref() {
info!("a navmesh save task is already running");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if let Some(_) = task.as_ref() {
info!("a navmesh save task is already running");
if task.is_some() {
warn!("Tried to save navmesh while another save is already in progress. Ignoring.");

}));
}
Some(_) => {
error!("a navmesh task is already running");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
error!("a navmesh task is already running");
warn!("Tried to load scene while another navmesh task is already running. Ignoring");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants