Files
tailscale/ipn/ipnlocal
Marwan Sulaiman 4b807ca95e portlist: refactor Poller to simplify external API
This change makes it so that Poller has only two external methods: Run and Close.
The Poller becomes harder to get wrong by external packages because Close is a no-op
if Run is not called and Run must be called to obtain updates and check an init-error.

The only 3rd method is an exported "Init" that preserves an old behavior whereby you can
pre-fetch a list of ports and check for errors _without_ starting Run's ticker.
However, I'd be happy to remove that if we can afford it.

Fixes #8171

Signed-off-by: Marwan Sulaiman <[email protected]>
2023-05-24 19:37:32 -04:00
..
2023-04-19 14:33:12 -07:00
2023-04-19 21:54:19 -04:00