rpc1()
rpc2()
problem: requires two tcp connections, when we could theoretically use just one
rpc("rpc1", "rpc2")
problem: makes rpcs look like second-class citizens
rpc1() // ...push into rpc list
rpc2() // ...push into rpc list
finalize_rpcs()
problem: need to remember to call finalize_rpcs()
rpc1() // ...setTimeout(finalize_rpcs, 0)
rpc2() // ...kills previous timeout, setTimeout(finalize_rpcs, 0)
good.
No comments:
Post a Comment