Hi, We added a new API function to V8 8.6.344, called Isolate::HasPendingBackgroundTasks. This API function allows embedders to check if there is pending background work that will eventually post new foreground tasks, like WebAssembly compilation. The new API should solve the problem where an embedder would shut down V8 even though there was still pending WebAssembly compilation that would eventually start actual script execution. With the new API the embedder can wait for new foreground tasks when Isolate::HasPendingBackgroundTasks returns true instead of shutting down V8.
The new API is already used in d8. More information is available in the design doc <https://docs.google.com/document/d/18vaABH1mR35PQr8XPHZySuQYgSjJbWFyAW63LW2m8-w> . Cheers, Andreas -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAELSTvcJmPtyEpxgnrXB_DCzCQp6O3WMzLf_oDJGUjov8vWUng%40mail.gmail.com.