r3bl-org/r3bl-open-core

Provide support for async or multithreaded function to perform API calls on each item in the list

Closed this issue · 0 comments

Context:

Provide a mechanism to allow an async function or multithreaded function to be passed in to the higher order function that allows API lookups on each item in the list.

The idea is that there can be a 2 column list display. The left column simply shows the item (in the list). The right column shows the result of the async API fetch call. Use case is showing a list of stock ticker symbols and the 1st column is the stock name, and 2nd col is the stock price.

Possibly use this crate: https://github.com/r3bl-org/r3bl_rs_utils/tree/main/redux