Once

constructor()(source)

Allocate a new Once.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)(source)

Allocate a new Once using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(status: OnceStatus, retval: <Error class: unknown class>)(source)

Allocate a new Once.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

status

the status of the #GOnce

retval

the value returned by the call to the function, if @status is %G_ONCE_STATUS_READY


constructor(status: OnceStatus, retval: <Error class: unknown class>, scope: <Error class: unknown class>)(source)

Allocate a new Once using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

status

the status of the #GOnce

retval

the value returned by the call to the function, if @status is %G_ONCE_STATUS_READY

scope

The AutofreeScope to allocate this structure in.


constructor(glibOncePointer: <Error class: unknown class><<Error class: unknown class>>)(source)