push method

  1. @MPI(name: "mesh.chan.push")
Future<void> push(
  1. Uint8List payload,
  2. Map<String, String> metadata,
  3. String topic, {
  4. Context? ctx,
})

Push Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. When using a capacity-restricted queue, this method is generally preferable to add, which can fail to insert an element only by throwing an exception.

Implementation

@MPI(name: "mesh.chan.push")
Future<void> push(Uint8List payload, Map<String, String> metadata, String topic, {Context? ctx}) {
  throw UnimplementedError('push() has not been implemented.');
}