Session.getAsyncContext

Gets @session's #SoupSession:async-context. This does not add a ref to the context, so you will need to ref it yourself if you want it to outlive its session.

For a modern #SoupSession, this will always just return the thread-default #GMainContext, and so is not especially useful.

class Session
MainContext
getAsyncContext
()

Return Value

Type: MainContext

@session's #GMainContext, which may be %NULL

Meta