Why makes calling error or done in a BodyParser's Iteratee the request hang in Play Framework 2.0?

后端 未结 2 1236
滥情空心
滥情空心 2020-12-17 03:17

I am trying to understand the reactive I/O concepts of Play 2.0 framework. In order to get a better understanding from the start I decided to skip the framework\'s helpers t

相关标签:
2条回答
  • 2020-12-17 04:05

    Things must have changed with Play 2.1 - Promise is no longer parametric, and this example no longer compiles.

    0 讨论(0)
  • 2020-12-17 04:13

    Your understanding is perfectly right and I have just push a fix to master:

    https://github.com/playframework/Play20/commit/ef70e641d9114ff8225332bf18b4dd995bd39bcc

    Fixed both cases plus exceptions in the Iteratees.

    Nice use of copy in case class for doing an Iteratee BTW.

    0 讨论(0)
提交回复
热议问题