ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergei Egorov <bsid...@gmail.com>
Subject Asynchronous jobs (not the scheduling)
Date Wed, 25 Jan 2017 11:04:03 GMT
Hi all,

I'm wondering if it's possible not to block the job executor's thread when
I wait for some async event.

somethingLike:

```
ignite.compute().run(() -> someServiceRefSomehow.doSomethingAsync());
```

where
```
interface SomeService {
    CompletableFuture<String> doSomethingAsync();
}
```

Or even better:

```
interface SomeService {
    Observable<String> doSomethingAsync();
}
```

Thanks!

Mime
View raw message