public JsonNode endAsyncMethod ( final JsiiPromise promise ) { ObjectNode req = makeRequest ( "end" ) ; req . put ( "promiseid" , promise . getPromiseId ( ) ) ; JsonNode resp = this . runtime . requestResponse ( req ) ; if ( resp == null ) { return null ; // result is null } return resp . get ( "result" ) ; }
Ends the execution of an async method .