Skip to main content

addAction method

[Future[<[bool]>]] addAction(

  1. [[CachedUserAction] action]

)

Adds an action to the queue with a TTL.

params:

  • action: the action to be added.

returns:

  • Future<bool>: returns true if the action was added successfully, otherwise false.

Implementation

Future<bool> addAction(CachedUserAction action) async 
  1. talawa
  2. offline_action_queue
  3. OfflineActionQueue
  4. addAction method
OfflineActionQueue class