You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're planning v0.4.0 and considering adding Context Support for cancellable operations. Before implementing, we'd love to hear your thoughts on whether this feature would be useful for your use cases.
🎯 What is Context Support?
Context support would allow you to cancel long-running operations (reading/writing large MAT-files) at any time.
Current behavior (v0.3.0):
// Once started, operation MUST completematFile, err:=matlab.Open(bigFile)
// No way to cancel or timeout ❌
Proposed behavior (v0.4.0):
// Cancellable with timeoutctx, cancel:=context.WithTimeout(context.Background(), 30*time.Second)
defercancel()
matFile, err:=matlab.OpenWithContext(ctx, bigFile)
// Automatically stops after 30 seconds ✅// OR if user clicks "Cancel" button ✅
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! 👋
We're planning v0.4.0 and considering adding Context Support for cancellable operations. Before implementing, we'd love to hear your thoughts on whether this feature would be useful for your use cases.
🎯 What is Context Support?
Context support would allow you to cancel long-running operations (reading/writing large MAT-files) at any time.
Current behavior (v0.3.0):
Proposed behavior (v0.4.0):
💡 Use Cases
1. Web API with automatic timeout
Benefit: Server stops processing if client disconnects (saves CPU/memory).
2. CLI tool with Ctrl+C support
Benefit: User can interrupt long operations with Ctrl+C.
3. Desktop app with cancel button
Benefit: Cancel button actually works, responsive UI.
4. Protection from corrupted files
Benefit: Protection from infinite hangs.
🔧 Technical Details
Proposed API:
Performance:
Backward compatibility:
❓ Questions for the Community
We need your input to decide if this feature is worth implementing:
1. Do you work with large MAT-files?
2. What's your use case?
3. Have you encountered these problems?
4. How important is this feature for you?
5. Would you use this feature?
🎯 Priority Decision
Based on ROADMAP.md, this feature is currently marked as 🟢 Low Priority (planned for v0.4.0 or later).
We'll implement it if:
We'll defer it if:
💬 Your Feedback
Please share your thoughts:
📚 More Information
🗳️ Vote with Reactions
Use reactions to vote quickly:
Thank you for your feedback! Your input helps us prioritize features that matter most to the community.
Posted by maintainers | Category: Ideas | v0.4.0 Planning
Beta Was this translation helpful? Give feedback.
All reactions