Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

action with assync result #65

Open
scalway opened this issue Feb 24, 2016 · 0 comments
Open

action with assync result #65

scalway opened this issue Feb 24, 2016 · 0 comments

Comments

@scalway
Copy link

scalway commented Feb 24, 2016

Current implementation of creating actions is blocking:

def action[T](name: String)(action: T => ActionResult[T]): ActionField[T]

"save" or "delete" actions could potentially communicate with DB so there'll be nice if they could use async API. This could be better approach for some usecases:

def action[T](name: String)(action: T => Future[ActionResult[T]]): ActionField[T]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant