Why timeout is an int pointer? #45033
fedor-beznravny
started this conversation in
General
Replies: 1 comment
-
Problem is in data lifecycle? Manual allocation of heap data and simple stack value copy is equal from the result point of view. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Can someone suggest, why here timeout is requiered as pointer to int?
The same sitation is visible in other places too.
Pointer can accept nil as "use default value" notifier. But, what if I want to specify 3 seconds - I should write
&int(3)
?Another question - why StopOptions are mandatory, why, as in official example, we could not pass a nil?
Beta Was this translation helpful? Give feedback.
All reactions