mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-11-03 09:04:47 +00:00
refactor: remove transport knowledge from Laminar class
Improve the boundary between RpcImpl and LaminarInterface such that the Laminar class doesn't require any types from kj/async.h. The necessary logic moved from Laminar to RpcImpl and the notification now happens by abstract virtual callback instead of kj::Promise. Also remove the fairly useless 'wait' RPC call and drop the wrappers around kj::PromiseFulfillerPair
This commit is contained in:
@@ -4,10 +4,9 @@ interface LaminarCi {
|
||||
|
||||
trigger @0 (jobName :Text, params :List(JobParam)) -> (result :MethodResult);
|
||||
start @1 (jobName :Text, params :List(JobParam)) -> (result :JobResult);
|
||||
pend @2 (jobName :Text, buildNum :UInt32) -> (result :JobResult);
|
||||
set @3 (jobName :Text, buildNum :UInt32, param :JobParam) -> (result :MethodResult);
|
||||
lock @4 (lockName :Text) -> ();
|
||||
release @5 (lockName :Text) -> ();
|
||||
set @2 (jobName :Text, buildNum :UInt32, param :JobParam) -> (result :MethodResult);
|
||||
lock @3 (lockName :Text) -> ();
|
||||
release @4 (lockName :Text) -> ();
|
||||
|
||||
struct JobParam {
|
||||
name @0 :Text;
|
||||
|
||||
Reference in New Issue
Block a user