8000 is there any way to cancel the request session? · Issue #85 · xtyxtyx/minio-dart · GitHub
[go: up one dir, main page]

Skip to content

is there any way to cancel the request session? #85

Open

Description

@tanlee007
No description provided.

Activity

  1. arrrrny commented on Oct 22, 2026

    @arrrrny

    Yes, in the fork (0.2.0). Two ways:

    // 1. a token that aborts the in-flight requests
    final token = MinioCancellationToken();
    final minio = Minio(..., cancellationToken: token);
    token.cancel();   // in-flight requests are aborted, later ones fail fast
    
    // 2. close the client, which aborts everything that is running
    minio.close();

    The injected http.Client is the escape hatch for everything else — proxies,
    custom TLS, retry policies.

  2. arrrrny commented on Oct 22, 2026

    @arrrrny

    This ships in zuraffa_minio — the maintained fork of this package, which upstream has not touched since August 2025.

    The fork keeps the API of the original package unchanged, so moving over is an import swap:

    // before
    import 'package:minio/minio.dart';
    // after
    import 'package:zuraffa_minio/minio.dart';

    Source, the changelog and the sweep of the open issues of this tracker: https://github.com/arrrrny/zuraffa_minio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0