public CompletionStage < Map < String , Result < R > > > callSync ( final SaltClient client , Target < ? > target , AuthMethod auth ) { return callSyncHelperNonBlock ( client , target , auth , Optional . empty ( ) ) . thenApply ( r -> r . get ( 0 ) ) ; }
Calls a execution module function on the given target and synchronously waits for the result . Authentication is done with the token therefore you have to login prior to using this function .