With the latest version of the key_value module (as of #132), the stock get_keys() method on Store (as defined in the spin_key_value_key_value_3_0_0 wit) returns a Tuple[StreamReader[str], FutureReader[Result[None, Error]]], rather than a list of strings.
This issue is for creating a convenience helper for returning the list of strings (keys), handling the StreamReader and FutureReader under the hood. Update the spin-kv example to suit once implemented.
Ref #132 (comment) for original context and #132 (comment) for proposed solution/implementation (potentially in a utils module as it is more generic than kv)
With the latest version of the key_value module (as of #132), the stock
get_keys()method onStore(as defined in the spin_key_value_key_value_3_0_0 wit) returns aTuple[StreamReader[str], FutureReader[Result[None, Error]]], rather than a list of strings.This issue is for creating a convenience helper for returning the list of strings (keys), handling the StreamReader and FutureReader under the hood. Update the
spin-kvexample to suit once implemented.Ref #132 (comment) for original context and #132 (comment) for proposed solution/implementation (potentially in a
utilsmodule as it is more generic than kv)