rspec/rules/S4583/description.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

8 lines
539 B
Plaintext

Calling the ``++BeginInvoke++`` method of a delegate will allocate some resources that are only freed-up when ``++EndInvoke++`` is called. This is why you should always pair ``++BeginInvoke++`` with an ``++EndInvoke++`` to complete your asynchronous call.
This rule raises an issue when:
* the ``++BeginInvoke++`` method is called without any callback and it is not paired with a call to ``++EndInvoke++`` in the same block.
* a callback with a single parameter of type ``++IAsyncResult++`` doesn't contain a call to ``++EndInvoke++``.