Is Go SDK goroutine-safe? I have a number of resou...
# golang
b
Is Go SDK goroutine-safe? I have a number of resources I'd like to lookup at the start. Their lookup is pretty slow, so I'd love to fork their lookup to a number of goroutines.
l
@bland-actor-69047 if you use the
Output
variant of any
Lookup<Resource>
function in a provider SDK, then we make this request async for you. Example: • sync:
func cloudflare.LookupTunnel(...) (*LookupTunnelResult, error)
(src) • async:
func cloudflare.LookupTunnelOutput(...) LookupTunnelResultOutput
(src)
b
Oh, that's pretty neat. Thank you.