Module near_async::test_loop::futures
source · Structs§
- An event that represents async computation. See async_computation_spawner() in DelaySender.
- AsyncComputationSpawner that spawns the computation in the TestLoop.
- Represents an action that was scheduled to run later, by using
DelayedActionRunner::run_later. DelayedActionRunnerthat schedules the action to be run later by the TestLoop event loop.- A message, plus a response callback. This should be used as the event type when testing an Actix component that’s expected to return a result.
Functions§
- An event handler that handles only
TestLoopDelayedActionEvents, by running the action encapsulated in the event. - Drives any Arc
events (futures spawned by our implementation of FutureSpawner) that are remaining in the loop.
Type Aliases§
- A DelaySender<Arc
> is a FutureSpawner that can be used to spawn futures into the test loop. We give it a convenient alias.