[ CCode ( has_construct_function = false , type = "void" ) ]
public async UnixSession.for_process (int pid, Cancellable? cancellable = null) throws Error
Asynchronously creates a new UnixSession object for the process with process id
pid.
When the operation is finished, callback will be invoked in the <link linkend="g-main-context-push-thread-default">
thread-default main loop</link> of the thread you are calling this method from. You can then call
UnixSession.for_process.end to get the result of the operation.
This method constructs the object asynchronously, for the synchronous and blocking version use UnixSession.for_process_sync.
| pid |
The process id of the process to get the session for. |
| cancellable |
A Cancellable or null. |
| callback |
A TaskReadyCallback to call when the request is satisfied |
| user_data |
The data to pass to |