public CompletionStage < WheelAsyncResult < R > > callAsync ( final SaltClient client , AuthMethod auth ) { return client . call ( this , Client . WHEEL_ASYNC , Optional . empty ( ) , Collections . emptyMap ( ) , new TypeToken < Return < List < WheelAsyncResult < R > > > > ( ) { } , auth ) . thenApply ( wrapper -> { WheelAsyncResult < R > result = wrapper . getResult ( ) . get ( 0 ) ; result . setType ( getReturnType ( ) ) ; return result ; } ) ; }
Calls a wheel module function on the master asynchronously and returns information about the scheduled job that can be used to query the result . Authentication is done with the token therefore you have to login prior to using this function .