Pause and Resume (original) (raw)
Ankit Narang ankit.narang at gmail.com
Wed Mar 11 09:29:16 UTC 2015
- Previous message: RFR 8074939: Add few sample scripts to demo nashorn parser API
- Next message: Pause and Resume
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I'm migrating to Nashorn from Rhino (v1.7R4). In my use case, I make asynchronous service calls from Javascript.
I accomplished it in Rhino by:
- Serializing Scope and Callback Function on S3 (AWS). Send S3 key as a payload to the service.
- After getting the response from service (async), de-serializing Scope and Callback Function from S3 (AWS) using the S3 key (present in service's response as the payload).
- Continue script execution by invoking Callback Function with service response as the argument (with the Scope obtained from step 2).
What's the way to do the same in Nashorn?
Thanks Ankit
- Previous message: RFR 8074939: Add few sample scripts to demo nashorn parser API
- Next message: Pause and Resume
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]