TaskCacheCallback
Description:
[ CCode ( instance_pos = 3.9 ) ]
public delegate void TaskCacheCallback (TaskCache self, void* key, Task task)
public delegate void TaskCacheCallback (TaskCache self, void* key, Task task)
TaskCacheCallback is the prototype for a function to be executed to populate an item in the cache.
This function will be executed when a fault (cache miss) occurs from a caller requesting an item from the cache.
The callee may complete the operation asynchronously, but MUST return either a GObject using return_pointer or a Error using return_error or return_new_error.
Parameters:
self |
An TaskCache. |
key |
the key to fetch |
task |
the task to be completed |
user_data |
user_data registered at initialization. |
Namespace: Dazzle
Package: libdazzle-1.0