最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rxjs - Reactive programming with NestJs - Stack Overflow

programmeradmin2浏览0评论

It is possible to implement Reactive programming in NestJs (Like WebFlux in Java/springboot) !?

For example When we run the code :

@Controller('/example')
export class AccountController {
  @Get()
  findAll(): Observable<number> {
    return from([1, 2, 3, 4]);
  }
}

It shows the result 4, and the Official Documentation of NestJs () said that : Nest will automatically subscribe to the source underneath and take the last emitted value (once the stream is completed).

I ask if there is a way to implement Reactive programming ?

发布评论

评论列表(0)

  1. 暂无评论