Module script::fetch

source ·


RAII fetch canceller object. By default initialized to not having a canceller in it, however you can ask it for a cancellation receiver to send to Fetch in which case it will store the sender. You can manually cancel it or let it cancel on Drop in that case.

Convenience function for synchronously loading a whole resource.