Is there a way to make a curry function async?
Suppose I have the event handler function below (in my actual use case it is not an event handler), how could I update it to run async? My end goal is to have a curried function that I can await (it will be returning a promise).
foo = () => (event) => {
this.setState({something:event.target.value});
}