title: Request thread interrupt not working on Ios
body: <p>I create a new thread, and y need to interrupt, I use the <code>thread.interrup()</code>, but when I throw request thread interrupt is not working on ios, works fine on simulator or in Android device.</p>
  
  <p>I Attach code to try it.</p>
  
  <p>My temporal solution is use a Flag to break while, but I want to use the InterruptedException </p>
  
  <pre><code>package com.kandy.forms;
  
  import com.codename1.io.Log;
  import com.codename1.ui.Button;
  import com.codename1.ui.Dialog;
  import com.codename1.ui.Display;
  import com.codename1.ui.Form;
  import com.codename1.ui.layouts.BoxLayout;
  
  
  public class Interrup extends Form {
  
      private Form previous;
      private Thread thread = null;
  
  
      public Interrup() {
  
          setLayout(new BoxLayout(BoxLayout.Y_AXIS));
  
          Button newThread = new Button ("Start Thread");
          newThread.addActionListener((e) -&gt; {
              thread = new Thread(new Runnable() {
                  @Override
                  public void run() {
                      while (true) {
                          try {
                              Thread.sleep(1000);
                              Log.p("thread working");
                          } catch (InterruptedException ie) {
                              Dialog.show("Message", "Interruption received", "Ok", null);
                              break;
                          }
                      }
                  }
              });
              //thread start
              thread.start();
          });
  
          Button interruptTreath = new Button ("Interrupt");
          interruptTreath.addActionListener((e) -&gt; {
              Log.p("Interrupt Sended");
              thread.interrupt();
          });
  
          add(newThread);
          add(interruptTreath);       
  
      }
  
      public void show() {
          previous = Display.getInstance().getCurrent();
          super.show();
      }
  
      public void goBack(){
          previous.showBack();
      }
  
  }
  
  </code></pre>