ext/iodine/fio.c
/**
 * `fio_close` marks the connection for disconnection once all the data was
 * sent. The actual disconnection will be managed by the `fio_flush` function.
 *
 * `fio_flash` will be automatically scheduled.
 */
`fio_close` marks the connection for disconnection once all the data was
sent. The actual disconnection will be managed by the `fio_flush` function.

`fio_flash` will be automatically scheduled.
` fio_close ` marks the connection for disconnection once all the data was sent . The actual disconnection will be managed by the ` fio_flush ` function . ` fio_flash ` will be automatically scheduled .
void fio_close(intptr_t uuid) {
  if (!uuid_is_valid(uuid)) {
    errno = EBADF;
    return;
  }
  if (uuid_data(uuid).packet || uuid_data(uuid).sock_lock) {
    uuid_data(uuid).close = 1;
    fio_force_event(uuid, FIO_EVENT_ON_READY);
    return;
  }
  fio_force_close(uuid);
}
void fio_close ( intptr_t uuid ) { if ( ! uuid_is_valid ( uuid ) ) { errno = EBADF ; return ; } if ( uuid_data ( uuid ) . packet || uuid_data ( uuid ) . sock_lock ) { uuid_data ( uuid ) . close = 1 ; fio_force_event ( uuid , FIO_EVENT_ON_READY ) ; return ; } fio_force_close ( uuid ) ; }
`fio_close` marks the connection for disconnection once all the data was
 sent.
` fio_close ` marks the connection for disconnection once all the data was sent .