autowire
autowire copied to clipboard
Support type parameters in autowire.Server
Goal would be to having something like this work:
object Router {
def route[T](apiImpl: T, path: String, data: Array[Byte]): Future[_] = {
AutowireRouter.route[T](apiImpl)(
autowire.Core.Request(path.split("/"),
Unpickle[Map[String, ByteBuffer]].fromBytes(ByteBuffer.wrap(data)))
)
}
}
According to @lihaoyi this will take a major refactoring of the macros
I think I might be running into this too: https://github.com/mscharley/scalajs-electron-demo/blob/791e088f3c0ed26fe9c27e8895f75df505d1dfee/src/main/scala/autowire/electronipc/ElectronIpcWireServer.scala
What needs to be done to get this sort of thing working?