pilebones / go-udev

Simple udev implementation in Golang
GNU General Public License v3.0
95 stars 28 forks source link

Deprecating func Monitor() interface to use go context to be more idiomatic #20

Open pilebones opened 3 years ago

pilebones commented 3 years ago

https://github.com/pilebones/go-udev/blob/master/netlink/conn.go#L126

Change historical interface

func (c *UEventConn) Monitor(queue chan UEvent, errs chan error, matcher Matcher) chan struct{} {

By something like that:

func (c *UEventConn) Monitor(ctx context.Context, queue chan UEvent, errs chan error, matcher Matcher) {