Description
mbroecheler had the idea of adding a Traversal.async() method. This is important for not only avoiding thread locking on a query in Gremlin, but also, it will allow single threaded language variants like Gremlin-JavaScript to use callbacks for processing query results.
Future<List<String>> result = g.V().out().values("name").async(Traversal::toList)
Future<List<String>> result = g.V().out().name.async{it.toList()}
g.V().out().values('name').async((err,names) => { // I don't know JavaScript, but ... return list(names); })
...
Attachments
Issue Links
- relates to
-
TINKERPOP-1489 Provide a Javascript Gremlin Language Variant
- Closed
- links to