Constructs a new ValueTask.
Optional
properties: IValueTaskProperties to set
Optional
ValueValueTask Value.
Optional
aggregatorSpecifies an aggregatorr to pull the value of.
Optional
bigA stringified big.js. Accepts variable expansion syntax.
Optional
hexA stringified hex number (0x prefix is optional).
Optional
utf8A utf8 string.
Optional
valueThe value that will be returned from this task.
Static
createCreates a new ValueTask instance using the specified properties.
Optional
properties: IValueTaskProperties to set
ValueTask instance
Static
decodeDecodes a ValueTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
ValueTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a ValueTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
ValueTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified ValueTask message. Does not implicitly verify messages.
ValueTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified ValueTask message, length delimited. Does not implicitly verify messages.
ValueTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromStatic
getStatic
toCreates a plain object from a ValueTask message. Also converts values to other types if specified.
ValueTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Returns a specified value.
Input: None
Returns: A numerical result.
Example: Returns the value 10
Example: Returns the currentRound result of an aggregator
Example: Returns the value stored in a CacheTask variable