// consume my reset service
Future<Response> future = client.target(....).async().post();
// wait for result
Response response = Sync.awaitEvent(t -> {
try {
t.handle(future.get());
} catch (Exception e) {
t.handle(null);
}
});
The problem is that i'm getting a thread block warning, is that normal ? isn't supposed to be non blocking and run outside the main loop ?
PS : i don't have this problem anywhere else, i'm using Quasar and yes all my methods have @Suspended annotation
Thank you very much !
Kindly,
chermah
Future.get()
would also just block the fiber and not any OS thread." so i assumed that it was not a blocking call.To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9f4379bd-c5f3-460b-9448-f4bd2639b88a%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9f4379bd-c5f3-460b-9448-f4bd2639b88a%40googlegroups.com.
--Jochen Mader | Lead IT Consultantcodecentric AG | Elsenheimerstr. 55a | 80687 München | Deutschland
tel: +49 89 215486633 | fax: +49 89 215486699 | mobil: +49 152 51862390
www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de
Sitz der Gesellschaft: Düsseldorf | HRB 63043 | Amtsgericht Düsseldorf
Vorstand: Michael Hochgürtel . Mirko Novakovic . Rainer Vehns
Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Klaus Jäger . Jürgen Schütz
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/a5ad3edc-e9ea-4c0d-ba25-19fe65ac7a69%40googlegroups.com.