pub async fn receive_resource_msg<M: Message + ResourceMessage + Debug>(
msg_subscriber: &MessageSubscription<M>,
resource_hash: Hash,
timeout_seconds: u64,
) -> Result<Arc<M>>Expand description
Wait for a crate::proto::ResourceMessage on msg_subscriber with a timeout.
If we receive a message with the wrong resource hash, it’s skipped.