How to call synchronous generator function?


#1

this is my code

* generator() {
    console.log(1);
    setTimeout(() => {
      console.log(2);
    }, 200);
    console.log(3);
  }

ionic version 3.15.2