Advertisement
sergAccount

Untitled

Mar 21st, 2021
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.app25;
  7.  
  8. import java.util.concurrent.Callable;
  9.  
  10. public class MyCallableTask implements Callable<String>{
  11.  
  12.     // реализауция задачи которая может быть выполнена с помощью отдельного
  13.     // потока выполнения (в аинх-м режиме)
  14.     @Override
  15.     public String call() throws Exception {
  16.         return "MY RESULT";
  17.     }    
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement