BUG used with jQuery fadeOut (). Queue ()

ele.fadeOut (). Queue (); will affect subsequent fadeIn () operations on ele. The
code is as follows:

<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
    .container{
        width: 90%;
        height: auto;
    }
    -sharpfadeDiv{
        width: 20vw;
        height: 20vh;
        background: cadetblue;
    }
    .button{
        width: 5vw;
        height: 5vw;
        border-radius: 50%;
        background: deepskyblue;
    }
</style>
<script src="../jquery-3.1.1.min.js"></script>
</head>
<body>
<div class="container">
    <div id="button0" class="button">button0</div>
    <div id="button1" class="button">button1</div>
    <div id="fadeDiv"></div>
</div>
<script>
(function () {
    $("-sharpbutton0").click(function () {
        $("-sharpfadeDiv").fadeOut(1000).queue(function () {
            console.log("1");
        });
    })
    $("-sharpbutton1").click(function () {
        $("-sharpfadeDiv").fadeIn();
    })
})()
</script>
</body>

it is feasible to use setTimeOut () instead of queue (), at present.
however, I would like to ask what is the reason for the consequences of the use of queue () in this way. Thank you for your hard work.

Mar.06,2021

$("-sharpfadeDiv").fadeOut(1000).queue(function () {
    $(this).dequeue();
});

see http://jquery.cuishifeng.cn/q.
document directly states that after calling queue (), you must call the animation queue after dequeue (), in order to execute normally. It is estimated that flag, needs to be recovered through dequeue () in the source code

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e641dd-44fca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e641dd-44fca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?