I have two functions that make networks requests:
e.g.:
func request1() (resultTypeA, error) {
....
}
func request2() (requestTypeB, error) {
...
}
Given that they are two different types, I can't just use one channel. What is the best pattern to parallelize to calls:
resultA, err := request1()
resultB, err := request2()