Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Figure out callbacks #3

Closed
mzabaluev opened this issue Apr 7, 2013 · 2 comments
Closed

Figure out callbacks #3

mzabaluev opened this issue Apr 7, 2013 · 2 comments
Assignees
Labels

Comments

@mzabaluev
Copy link
Member

We need to figure out the semantics of passing safe callbacks from Rust to GObject:

  • What type and sigil should the callback closure have.
  • Which task it is to be called in.
@mzabaluev
Copy link
Member Author

The callback task could be the global dispatch task from #2.

@mzabaluev
Copy link
Member Author

Callbacks are considered working as of 5d81d4e.
A callback is, naturally, an owned lambda. For GIO async methods, a callback is called in the thread owning the object's affine GMainContext.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant