There is no standard way to accomplish this.
Implementing a send / recv pair with non-blocking calls (e.g. MPI_Isend, MPI_Irecv) and using MPI_Test and MPI_Cancel is one possible solution.
Depending on the nature of the nature of the resource and the number of times in the program this functionality is required, you can also consider implementing MPI_ISend as an "ongoing request" object. There is additional information here: Permanent communication .
, , , . , MPI_ *. , MPI_Send/MPI_Recv.