https://stackoverflow.com/a/13187820/1766716
โญ Canonical โ this is the single source of truth for this project.
| Field | Value |
|---|---|
| Name | sandbox-net |
| Tier | ๐๏ธ Archive |
| Description | https://stackoverflow.com/a/13187820/1766716 |
| Visibility | ๐ Private |
| Fork | No |
| Last activity | ย |
| Status | โ Archived |
| Original source | Github |
| Original owner | guneysus |
| Language | C# |
| Type | Web App (ASP.NET) |
| Size | Large |
| Idea | .NET code sandbox for quick prototyping |
| Idea score | Multi |
| Impl score | Multi |
| Rating | Multi |
benchmarks ===========
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>cancellation</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.min.js" integrity="sha256-T/f7Sju1ZfNNfBh7skWn0idlCBcI3RwdLSS4/I7NQKQ=" crossorigin="anonymous"></script>
<script>
const CancelToken = axios.CancelToken;
var source = CancelToken.source();
var sendRequest = function () {
document.getElementById("btnSubmit").disabled = true;
document.getElementById("btnCancel").disabled = false;
axios.get('/slowtest', {
cancelToken: source.token
}).catch(function (thrown) {
if (axios.isCancel(thrown)) {
document.getElementById("btnSubmit").disabled = false;
document.getElementById("btnCancel").disabled = true;
source = CancelToken.source();
console.warn('Request canceled', thrown.message);
} else {
repos/github.com/guneysus/sandbox-netgit@github.com:guneysus/archive.gitgit@gitlab.com:guneysu/archive.gitgitea@192.168.1.19:guneysu.dev/github-archive.git| โ Sandbox | server โ |
Generated by scripts/generate.py ยท Back to index