send_future_batch
requires a Vec
, doesn't accept an Option
#2506
Labels
send_future_batch
requires a Vec
, doesn't accept an Option
#2506
Problem
batch_callback()
works with any result type that implementsSendAsMessage
, which basically means eitherOption
orVec
. Butsend_future_batch()
requiresVec
. This feels like an unnecessary limitation, it should be able to useSendAsMessage
as well so that way I can have a future that optionally sends a message.Arguably
send_message_batch()
could takeSendAsMessage
as well for consistency, though it's less important there as I can simply choose to not send a message if I haveNone
. If you add abatch_callback_future()
(which seems like a missing hole right now) then that too should useSendAsMessage
.Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: