I want to initlialize the state of the subscription in the subscription itself, but when I initialize the state, it also asks me to return a Message, before we could return a Option. What should I do?
I want to initlialize the state of the subscription in the subscription itself, but when I initialize the state, it also asks me to return a Message, before we could return a Option. What should I do?
You can use loop
and return
. Although I recommend you to use subscription::channel
instead.