You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need support for async/await in the lambda expression.
Pitch
I found meaningful use cases for async lambda in reactive programming. Here is the example code that should be:
asyncdefread_one_by_id(request: ReadOneByIdRequest) ->Content[Account]:
returnrx.just(request).pipe(
ops.map(asynclambdarequest: awaitaccount_repository.read_one_by_id(request.id)),
ops.map(lambdaentity: Content(data=entity, message="Account read one by id succeed.")),
ops.catch(lambdaexception, source: rx.just(
Content(entity=None, message=f"Account read one by id failed: {exception}")))
).run()
Feature or enhancement
Need support for async/await in the lambda expression.
Pitch
I found meaningful use cases for async lambda in reactive programming. Here is the example code that should be:
Previous discussion
#77628