Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specifying context to GetProperty and SetProperty #195

Open
jmuk opened this issue Mar 2, 2020 · 1 comment · May be fixed by #336
Open

specifying context to GetProperty and SetProperty #195

jmuk opened this issue Mar 2, 2020 · 1 comment · May be fixed by #336

Comments

@jmuk
Copy link

jmuk commented Mar 2, 2020

Hi,

So there are Call and CallWithContext for dbus.BusObject. The former is actually a proxy of the latter with context.Background. However, GetProperty and SetProperty don't have such variations and they always use context.Background. It would be plausible if we have something like GetPropertyWithContext and SetPropertyWithContext with custom context.

@jsouthworth
Copy link
Member

It is feasible to do this. GetProperty and SetProperty are just wrappers around Call so one can use CallContext in the same way https://github.com/godbus/dbus/blob/master/object.go#L200.

@brdefaria brdefaria linked a pull request Sep 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants