You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batches already works on Server side, commit 96504cc
On Client side syntax will be:
my $b = $client."rpc.batch"(); # get handle with batch context
$b.foo() # stack foo method call
$b.bar() # stack bar method call
my $result = $client."rpc.flush"();
Explanation:
According to spec method names that begin with "rpc." are reserved for internal processing. Quoted method "rpc.batch" must be used to avoid confusing with dispatch to "rpc" method, which is not internal.
Notifications in batches:
$b will be treated just the same as $client, so Notification can derive its own handle with notification handle from it
$b."rpc.notification"().foo() # stack foo notification in batch
Spec
Exceptions won't be thrown on error, instead of that exception objects will be returned in result array.
This has to be implemented along with notifications, because notifications should be skipped in response batch while maintaining requests order.
Interface suggestion:
The text was updated successfully, but these errors were encountered: