Hi There,

Is there any penalty for creating channels "on-the-fly" in golang?

Such a use case: asynchronous processing of data, where every invocation is 
unrelated to the other.

I would imagine something like:

```
ch := make(chan int)

func request(i int) chan-> int {
  reply := make(chan int)
  go func() {
     reply <- some_time_consuming_application()
  }
  return reply
}
```

where request() can be called in a very high rate.

Thanks,
Itay

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to