populate_async


Description:

public abstract async ListModel populate_async (CompletionContext context, Cancellable? cancellable) throws Error

Asynchronously requests that the provider populates the completion results for context.

For providers that would like to populate a [iface@Gio.ListModel] while those results are displayed to the user, [ method@CompletionContext.set_proposals_for_provider] may be used to reduce latency until the user sees results.

Parameters:

this

a CompletionProvider

context

a CompletionContext

cancellable

a Cancellable or null

callback

a callback to execute upon completion

user_data

closure data for callback