get_async_context


Description:

[ Version ( deprecated = true ) ]
public unowned MainContext? get_async_context ()

Warning: get_async_context is deprecated.

Gets this's async_context, if you are using the old API.

Note:

If you are using listen, etc, then the server listens on the thread-default MainContext, and this property is ignored.

(With the new API, the server runs in the thread's thread-default MainContext, regardless of what this method returns.)

This does not add a ref to the context, so you will need to ref it yourself if you want it to outlive its server.

Parameters:

this

a Server

Returns:

this's MainContext, which may be null