You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to add a code path in debug mode that asserts if a user has accidentally included an AsyncParseableCommand nested under a Sync one, as the async run entry point will not be called in this case.
The text was updated successfully, but these errors were encountered:
It would be nice to add a code path in debug mode that asserts if a user has accidentally included an AsyncParseableCommand nested under a Sync one, as the async run entry point will not be called in this case.
Does the following code correctly express this issue?
structMath:ParsableCommand{staticvarconfiguration=CommandConfiguration(
subcommands:[Add.self])structAdd:AsyncParsableCommand{@Argument()varvalues:[Int]=[]}}// Error: `Add` subcommand can't run asynchronously in `Math`
It would be nice to add a code path in debug mode that asserts if a user has accidentally included an AsyncParseableCommand nested under a Sync one, as the async run entry point will not be called in this case.
The text was updated successfully, but these errors were encountered: