<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def recv_event(self) -> Any: """\ Receives an event from the task. If the task terminates before another event, an exception is raised. A normal return is wrapped in a `Success` exception, other exceptions result in a `Failure` with the original exception as the cause. """

        try:
            return await self._events.recv()
        except EOFError:
            # component has terminated, raise the cause (either Failure, or LifecycleError) or Success
            raise Component.Success(await self._future)