We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We just tried to make all the methods of our state machine async. For on transition we hit:
--> bazel-out/k8-fastbuild/bin/otiv3/pipeline_manager_process/state_machines/state_machine.rs:87:21 | 87 | on_transition = "Self::on_transition", | ^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item | = note: expected fn pointer `for<'a, 'b, 'c> fn(&'a mut StateMachineStruct<_>, &'b State, &'c State) -> ()` found fn item `for<'a, 'b, 'c> fn(&'a mut StateMachineStruct<_>, &'b State, &'c State) -> impl Future<Output = ()> {StateMachineStruct::<Handler>::on_transition}`
We get a similar error for on_dispatch. These methods aren't used in your async example. Are they just not supported yet?
Thanks!
The text was updated successfully, but these errors were encountered:
ON_DISPATCH and ON_TRANSITION in the trait IntoStateMachine are non-async.
Thus, the issue isn't just in the macro.
Sorry, something went wrong.
No branches or pull requests
We just tried to make all the methods of our state machine async. For on transition we hit:
We get a similar error for on_dispatch. These methods aren't used in your async example. Are they just not supported yet?
Thanks!
The text was updated successfully, but these errors were encountered: