Constructor

DexFuturenew_take_string

Declaration [src]

DexFuture*
dex_future_new_take_string (
  char* string
)

Description [src]

Creates a new DexFuture and resolves it with string.

Parameters

string char*
 

The resolved value for the future.

 The called function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: DexFuture
 

A resolved DexFuture.

 The caller of the function takes ownership of the data, and is responsible for freeing it.