Re: Emulating CompletableFuture with Promise
I decided to package this up in a standalone library so it can be used until such time that it makes it into a GWT release. https://github.com/OneGeek/GWT-CompletableFuture On Monday, September 5, 2016 at 4:47:10 AM UTC-4, Andrei Korzhevskii wrote: > > I guess you need to super-source this class so the gwt compiler could use > it. > > You can take a look at my initial CompletableFuture implementation here: > > https://github.com/nordligulv/gwt/tree/completable-future > > https://github.com/nordligulv/gwt/commit/ea70c5358bac3c939cb0c1628a58ccc462cd7423 > > Feel free to use it but note that I haven't tested it properly yet. > > > > On Monday, September 5, 2016 at 3:28:27 AM UTC+3, Ian Preston wrote: >> >> I'm trying to emulate CompletableFuture by backing directly onto Promise, >> but when compiling it gives this error: >> "No source code is available for type >> java.util.concurrent.CompletableFuture" >> (it finds other JRE classes I've replaced fine) >> >> My source I'm including is below. Am I doing anything illegal? >> >> package java.util.concurrent; >> >> import com.google.gwt.user.client.*; >> import jsinterop.annotations.*; >> >> import java.util.function.*; >> >> @JsType(isNative=true, name = "Promise", namespace = JsPackage.GLOBAL) >> public class CompletableFuture implements CompletionStage { >> >> @JsMethod(name = "then") >> public native CompletableFuture thenApply(Function> extends U> fn); >> >> @JsMethod(name = "then") >> public native CompletableFuture thenAccept(Consumer >> action); >> >> @JsMethod(name = "then") >> public native CompletableFuture thenCompose(Function> T, ? extends CompletionStage> fn); >> >> @JsMethod(name = "reject") >> public native boolean completeExceptionally(Throwable ex); >> >> @JsMethod(name = "resolve") >> public native boolean complete(T value); >> >> @JsMethod(name = "resolve") >> public static native CompletableFuture completedFuture(U >> value); >> >> @JsOverlay >> public T get() throws InterruptedException, ExecutionException { >> Window.alert("Calling synchronous get() on CompletableFuture is >> not possible in Javascript!"); >> throw new IllegalStateException("Unimplemented!"); >> } >> } >> > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: I need java.util.Collections synchronized classes.
You place it wherever you want in your source tree, usually at src/emul or src/super I think. So you'd have src/emul/java/util/Collections.java Then add to your gwt.xml file. Someone else can help fill in the details I've missed, I'm a little fuzzy on the specifics of how the path gets resolved or the canonical location for the super-source directory, but that's the idea. On Friday, February 6, 2015 at 5:20:55 PM UTC-5, eho...@usdataworks.com wrote: > > > I found an "emu" directory with a Collections implementation. Problem is > that Collections.java file has a "java.util" package. I can't put that in > my source tree. It will collide with the real implementation. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Strange Behavior from scheduleIncremental
Browser: Firefox 25 GWT: 2.5 I'm changing the implementation of a scatterchart I have to update incrementally to avoid the slow script warning. I've successfully implemented this using Scheduler.scheduleIncremental. However, there is one oddity I'd like to better understand: The chart is only updated when the user is actively performing input e.g. moving the mouse, but it does not progress if no input is performed at all, though the browser UI is not hung. Is this behavior a setting I've missed? A (potentially fixed in 2.6 or 2.7) GWT bug? Something else? I'd really appreciate any insight others could provide into this behavior. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: The Future of GWT Report 2012 Published
There's a mention about "very good tools for automated tests, such as Jucikito" but Google doesn't find anything for Jucikito, is there a typo? I'd love to know what this "very good tool" is exactly. On Tuesday, December 4, 2012 6:19:05 AM UTC-5, Joonas Lehtinen wrote: > > *The GWT community have been having many questions about the Future of > GWT. Questions like: Where is GWT going? How is GWT used today? What are > the challenges they are facing? What is the competition? Should I build my > next project with GWT? > > When joining the GWT steering committee and deciding to include a full > copy of GWT into Vaadin 7 we had the same questions. In the end we stepped > forward and asked the GWT community. Now after 2 months of asking and > receiving responses to the dozens of questions we had from over over 1300 > GWT users, we compiled all of this together and are proud to present you > with some answers in for of 30 page long report. We would like to thank > everyone who participated: You - the very active GWT community who > answered, GWT steering committee members and other GWT experts who helped > create the questions and analyze the answers, Vaadin team and David Booth > who coordinated the effort. > > Enough talking, download your personal copy of The Future of GWT Report at: > * > * > https://vaadin.com/gwt/report-2012 > > * > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/m5TI0OAd9-sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
AutoBean Category Implementation Inheritance
When using AutoBean Categories Given: I have two interfaces, A and B B extends A I have a Category class for each, ACategory and BCategory I have an @Category annotation on my ObjectFactory for each Question: will the AutoBean produced by factory.b() have the methods implemented in ACategory and in BCategory, or only those in BCategory? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/thOpW1s5cIEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.