pub async fn append(
        self,
        data: String,
        ) -> Result<CoreWasm, JsError>
    {
        let data: Vec<u8> = data.as_bytes().to_vec();
        {
            let mut core = self.core.lock().await;
            core.append(&data, None).await
                .map_err(|_| JsError::new("Could not append data to core."))?;
        }
        Ok(self)
    }
/// Append data to the core.
///
/// Because of the requirement for 'static lifetime for async wasm methods,
/// the [CoreWasm] is threaded through.
Append data to the core.
Because of the requirement for 'static lifetime for async wasm methods,
the [CoreWasm] is threaded through.
Append data to the core . Because of the requirement for ' static lifetime for async wasm methods the [ CoreWasm ] is threaded through .
pub async fn append(
        self,
        data: String,
        ) -> Result<CoreWasm, JsError>
    {
        let data: Vec<u8> = data.as_bytes().to_vec();
        {
            let mut core = self.core.lock().await;
            core.append(&data, None).await
                .map_err(|_| JsError::new("Could not append data to core."))?;
        }
        Ok(self)
    }
pub async fn append ( self , data : String , ) -> Result < CoreWasm , JsError > { let data : Vec < u8 > = data . as_bytes ( ) . to_vec ( ) ; { let mut core = self . core . lock ( ) . await ; core . append ( & data , None ) . await . map_err ( | _ | JsError :: new ( " " ) ) ? ; } Ok ( self ) }
Append data to the core.
Append data to the core .
self
data
String
self
data
String