A generic class for providing thread-safe invocation of delegates. Can be used for (but not limited to) updating GUI elements from another thread.