Gets the poll function set by [method@GLib.
MainContext.set_poll_func].
a main context (if `NULL`, the global-default main context will be used)
the poll function