open_async


Description:

[ Version ( since = "6.0" ) ]
public uint open_async (ConnectionOpenFunc callback) throws Error

This function requests that the connection be opened.

If the connection is already opened, then this function returns an error (with the gda_connection_already_opened_error code).

Note: callback function will be called when processing events from the MainContext defined by set_main_context, for example when there is a main loop for that main context.

Parameters:

this

a Connection object

callback

a ConnectionOpenFunc which will be called after the connection has been opened (of failed to open)

data

data to pass to callback when called

Returns:

a job ID