#include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <future>
using namespace std;
int mythread()
{
cout << "my thread is start" << this_thread::get_id() << endl;
chrono::milliseconds dura(2000);
return 5;
}
int main()
{
future<int> result = async(mythread);
cout << "continue...." << endl;
cout << result.get() << "............." << endl;
}