title: Is there a way to wait until a function is finished?
body: <p>I'm trying to get information (true/false) from AsyncStorage in a function and create a string which is importent to fetch data in the next step. My problem is, the function is not finished until the string is required.</p>
  
  <p>I tried many solutions from the internet like async function and await getItem or .done() or .then(), but none worked out for me. </p>
  
  <p>The current behaviour is that the console displays first "channel required: " than "channel: channel_id0".</p>