View Source Evision.AsyncArray (Evision v0.1.11)
Link to this section Summary
Types
Type that represents an Evision.AsyncArray
struct.
Functions
Return
dst:
Evision.Mat
.
Positional Arguments
timeoutNs:
double
.
Positional Arguments
timeoutNs:
double
.
Python prototype (for reference):
Return
- retval:
bool
Python prototype (for reference):
Positional Arguments
- timeoutNs:
double
Return
- retval:
bool
Python prototype (for reference):
Link to this section Types
@type t() :: %Evision.AsyncArray{ref: reference()}
Type that represents an Evision.AsyncArray
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
Return
- self:
Evision.AsyncArray
Python prototype (for reference):
AsyncArray() -> <AsyncArray object>
@spec get(t()) :: Evision.Mat.t() | {:error, String.t()}
Return
dst:
Evision.Mat
.destination array
Fetch the result.
Waits for result until container has valid result. Throws exception if exception was stored as a result. Throws exception on invalid container state. Note: Result or stored exception can be fetched only once.
Python prototype (for reference):
get([, dst]) -> dst
@spec get(t(), number()) :: Evision.Mat.t() | false | {:error, String.t()}
Positional Arguments
timeoutNs:
double
.timeout in nanoseconds, -1 for infinite wait
Return
retval:
bool
dst:
Evision.Mat
.destination array
Retrieving the result with timeout
@returns true if result is ready, false if the timeout has expired Note: Result or stored exception can be fetched only once.
Python prototype (for reference):
get(timeoutNs[, dst]) -> retval, dst
@spec get(t(), number(), [{atom(), term()}, ...] | nil) :: Evision.Mat.t() | false | {:error, String.t()}
Positional Arguments
timeoutNs:
double
.timeout in nanoseconds, -1 for infinite wait
Return
retval:
bool
dst:
Evision.Mat
.destination array
Retrieving the result with timeout
@returns true if result is ready, false if the timeout has expired Note: Result or stored exception can be fetched only once.
Python prototype (for reference):
get(timeoutNs[, dst]) -> retval, dst
Python prototype (for reference):
release() -> None
Return
- retval:
bool
Python prototype (for reference):
valid() -> retval
Positional Arguments
- timeoutNs:
double
Return
- retval:
bool
Python prototype (for reference):
wait_for(timeoutNs) -> retval