I want to await a signal, but I only want to wait for one with specific parameters set. For example, I have a ticket processing class that has the following signal
signal ticket_processed(id:int, message:String)
Now I have a bit of code that needs to await that signal, but only if the ticket id is set to a specific value
func send_message(ticket_id:int, text:String):
ticket_processor.process_ticket(ticket_id, text)
#I only want to wait for the signal where id == ticket_id
await ticket_processor.ticket_processed
my_label.text = <message returned from the signal>
I need to use await because this is going to be asynchronous. But I need to wait for a specific signal and I need to use the signal parameters too. Can I do this?